Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. import random
  2. username = ""
  3. password = ""
  4.  
  5. ###LOGIN COMPLETED###
  6.  
  7. while username != "MrDLeeman" or password != "Leemanb83":
  8.  
  9. username = input("please enter your username: ")
  10. password = input ("Please enter your password: ")
  11.  
  12. if username != "MrDLeeman" or password != "Leemanb83":
  13. print ("Incorrect username or password please retry")
  14. continue
  15. else:
  16. break
  17.  
  18. print("Correct username and password, please continue.")
  19.  
  20. print ("")
  21. print (30 * '-')
  22. print (" M A I N - M E N U")
  23. print (30 * '-')
  24. print ("1.Add student ")
  25. print ("2.Edit student ")
  26. print ("3.View student ")
  27. print ("4.View report ")
  28. print ("5.Close ")
  29. print (30 * '-')
  30.  
  31. choice = input('Enter your choice [1-5] : ')
  32.  
  33. choice = int(choice)
  34.  
  35. if choice == 1:
  36. print (30 * '*')
  37. print ("Important notice :")
  38. print ("Before adding a child create a blank .txt document with the")
  39. print ("title as the students full nanme no spaces")
  40. print (30 * '*')
  41. print ("")
  42.  
  43. print ("Please enter the following: ")
  44. sforname = input("Forname: ")
  45. ssurname = input("Surname: ")
  46. dob = input("Date of birth: ")
  47. gender = input("Gender: ")
  48. Address = input("Address: ")
  49. Homephone = input("Home phone number: ")
  50.  
  51. print ("Please take note of the following: ")
  52. semail = print(sforname,".",ssurname,"@Treeroad.com")
  53. uidnum = print(random.randint(1000, 9999))
  54.  
  55. elif choice == 2:
  56. print ("Starting user management...")
  57. elif choice == 3:
  58. print ("Rebooting the server...")
  59. elif choice == 4:
  60. print ("Starting user management...")
  61. elif choice == 5:
  62. print ("Rebooting the server...")
  63. else: ## default ##
  64. print ("Invalid number. Try again...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement