Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2005
    Location
    West Sussex
    Posts
    25
    Rep Power
    0
    oh right. so they all use like the same python commands, but maybe a few more or so? but its not worth me looking into them at the moment. also on Python you use Tkinter? should i be using that yet or leave it till i know more? and is there other import commands like Tkinter? ok thank you in advance.
  2. #17
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2005
    Location
    West Sussex
    Posts
    25
    Rep Power
    0
    ok... i have made this code all on my own but i want to know how to make it loop so when it gets to the end and prints Good, Bye i want to to go to the top again or if you type in the wrong password that is says wrong please try again... (i don't really want to use it on here but this is just the only example i can think of) also sorry for the stupid Steve .inc stuff

    Code:
    # Password Test...
    
    right_pass = "testpassword"
    
    print "Welcome To Steve .inc"
    print
    print "What Do You Want To Do Here?"
    print "1 - Access Files"
    print "2 - Leave"
    Input1 = input("> ")
    if Input1 == 1:
            print "please enter your password"
            Password1 = raw_input("")
            if Password1 == right_pass:
                print "Correct Password, You May Enter"
            else:
                print "Sorry Password Incorrect"
    else:
        print "Ok, Good Bye"
    ok thank you.
  4. #18
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Look into while statements.
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo