Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(raw_input('Enter User ID?\n')) # x will be used as the main function parameter
- def congrats(): # will return when used in main function
- print('Congrats student of Prep, enter and head to class now!')
- def electric_scanner(x):
- import time
- usernames = 912 or 821 or 632 or 109 or 835 or 324 or 465
- PapaJRob = 7777777 # /\ Used so that only one 3 digit number
- if x == usernames: # will be compared
- print('Door Opened')
- congrats()
- elif x == PapaJRob: # it is the PapaJRob option
- print('The door has completely vanished')
- else:
- print('Door remains closed')
- time.sleep(.5) # Delays code by .5 sec
- print('Try again')
- time.sleep(.5) # Delays code by another .5 sec making total 1 sec
- electric_scanner(x) # Loops back if incorrect number inputted
- electric_scanner(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement