can anyone tell me why the last part of my programme wont work. i want the
user to have to press enter to exit but it doesn't happen through the python
interface.
the programme works fine otherwise but just shuts down when finished
thanks all
adrian
def this():
print 'hello'
print 'i am your computer'
# set the values
password='gorilla'
Given_Password=' '
#password loop
while Given_Password.lower() != password.lower():
Given_Password=raw_input ('please enter your password: ')
if Given_Password.lower()==password.lower():
print 'Password Accepted '
else:
print 'Incorrect'
def STATS():
print 'hello'
firstname=raw_input ('please enter your firstname: ')
lastname=raw_input ('please enter your lastname: ')
town=raw_input ('what town are your from? ')
county=raw_input ('what county are you from? ')
details=name+"\n"+town+"\n"+county
print " "
print details
print "thank's for your time"
this()
STATS()
input("\n\nPress the enter key to exit. ")
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor