Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import sys
- login = "Mongoose"
- password = "secret"
- x = 1
- print "Welcome User"
- print ""
- login = raw_input("Username: ")
- password = raw_input("Password: ")
- if login == 'Mongoose':
- x = x + 1
- else :
- x = x - 1
- if password == 'secret':
- x = x + 1
- else :
- x = x - 1
- if x > 1:
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = '...n'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- time.sleep(0.5)
- string = 'Access Grantedn'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- if x < 1:
- string = 'Access Deniedn'
- for char in string:
- sys.stdout.write(char)
- sys.stdout.flush()
- time.sleep(.10)
- Traceback (most recent call last):
- File "./login3.py", line 27, in <module>
- for char in string:
- NameError: name 'string' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement