Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. import time
  2. import sys
  3. login = "Mongoose"
  4. password = "secret"
  5. x = 1
  6.  
  7. print "Welcome User"
  8. print ""
  9.  
  10. login = raw_input("Username: ")
  11.  
  12. password = raw_input("Password: ")
  13.  
  14. if login == 'Mongoose':
  15. x = x + 1
  16. else :
  17. x = x - 1
  18.  
  19. if password == 'secret':
  20. x = x + 1
  21. else :
  22. x = x - 1
  23.  
  24.  
  25. if x > 1:
  26. string = '...n'
  27. for char in string:
  28. sys.stdout.write(char)
  29. sys.stdout.flush()
  30. time.sleep(.10)
  31. time.sleep(0.5)
  32. string = '...n'
  33. for char in string:
  34. sys.stdout.write(char)
  35. sys.stdout.flush()
  36. time.sleep(.10)
  37. time.sleep(0.5)
  38. string = '...n'
  39. for char in string:
  40. sys.stdout.write(char)
  41. sys.stdout.flush()
  42. time.sleep(.10)
  43. time.sleep(0.5)
  44. string = '...n'
  45. for char in string:
  46. sys.stdout.write(char)
  47. sys.stdout.flush()
  48. time.sleep(.10)
  49. time.sleep(0.5)
  50. string = '...n'
  51. for char in string:
  52. sys.stdout.write(char)
  53. sys.stdout.flush()
  54. time.sleep(.10)
  55. time.sleep(0.5)
  56. string = '...n'
  57. for char in string:
  58. sys.stdout.write(char)
  59. sys.stdout.flush()
  60. time.sleep(.10)
  61. time.sleep(0.5)
  62. string = '...n'
  63. for char in string:
  64. sys.stdout.write(char)
  65. sys.stdout.flush()
  66. time.sleep(.10)
  67. time.sleep(0.5)
  68. string = 'Access Grantedn'
  69. for char in string:
  70. sys.stdout.write(char)
  71. sys.stdout.flush()
  72. time.sleep(.10)
  73.  
  74. if x < 1:
  75. string = 'Access Deniedn'
  76. for char in string:
  77. sys.stdout.write(char)
  78. sys.stdout.flush()
  79. time.sleep(.10)
  80.  
  81. Traceback (most recent call last):
  82. File "./login3.py", line 27, in <module>
  83. for char in string:
  84. NameError: name 'string' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement