No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, this is my code for Python: [CODE]granted = False for count in range(10): password = raw_input('Please enter a password: ') if password == 'thepassword': granted = True break print 'You have entered invalid password %i times.' % (count+1) if granted: print 'Access Granted' raw_input('Press ENTER to continue...\n') else: print … |
|
Hi. I'm trying to make a simple question program, my first question doesn't work (if you enter the wrong answer/an answer that isn't an integer, you get stuck in an infinite loop). However, my second question works fine even though the code is quite similar. Sorry if I'm being a … |