Advertisement
Guest User

Untitled

a guest
Mar 16th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.52 KB | None | 0 0
  1.  
  2. import time
  3.  
  4. print("Loading BoneOS on Python")
  5. time.sleep(2)
  6. print("")
  7. print("BoneOS loaded.")
  8. print("")
  9. #Must Access this to continue.
  10.  
  11. def main():
  12.     while True:
  13.         UserName = input ("Enter Username: ")
  14.         PassWord = input ("Enter Password: ")
  15.  
  16.         if UserName == 'Stora' and PassWord == 'Katten':
  17.             time.sleep(1)
  18.             print ("Login successful!")
  19.             logged()
  20.         else:
  21.             print ("Password did not match!")
  22.  
  23. def logged():
  24.     time.sleep(1)
  25.     print ("Welcome to BoneOS, StoraKatten")
  26.     command()
  27.  
  28. def command():
  29.     while True:
  30.         Command = input ("State command  ")
  31.         if Command == 'log off':
  32.             time.sleep(1)
  33.             print("You have been logged off.")
  34.             print("")
  35.             main()
  36.         if Command == 'commands':
  37.             time.sleep(1)
  38.             print("Command list:")
  39.             print("log off   commands")
  40.             print("hi         license")
  41.             print("shell")
  42.             command()
  43.         if Command == 'hi':
  44.             print ("Hello, Stora!")
  45.             command()
  46.         if Command == 'license':
  47.             print ("Here is the license of python:")
  48.             license()
  49.             command()
  50.         if Command == 'shell':
  51.             print("Here's the shell:")
  52.             shell()
  53.         else:
  54.             time.sleep(1)
  55.             print("That isn't a valid command.")
  56.             command()
  57. main()
  58. def shell():
  59.     print("Here's the shell! Do main() to log back in!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement