Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. import time, sys
  2.  
  3. def sleep_print(msg, _time):
  4.     print msg
  5.     time.sleep(_time)
  6.  
  7. def dothis(x):
  8.     print "Doing this (%s)" % x
  9.    
  10. yourName = raw_input("Please enter your username: ")
  11. if yourName.lower() == "admin":
  12.     sleep_print("Admin Login Successfull",2)
  13.     while 1:
  14.         menu = ["Disconnect PC's from the internet (LAN)","Open CD Tray (LOCAL)","Go into other people's C:\\","Testing.....","Testing....."]
  15.         for item in menu:
  16.             print "%d) %s" % (menu.index(item), item)
  17.         choice = int(raw_input("Which action would you like to perform? "))
  18.         if choice == 1:
  19.             print "comming soon!"
  20.         elif choice == 2:
  21.             print "coming sooner!"
  22.         else:
  23.             print "Not avaliable ;("
  24. else:
  25.     sys.exit("Incorrect username!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement