Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- username = ""
- password = ""
- ###LOGIN COMPLETED###
- while username != "MrDLeeman" or password != "Leemanb83":
- username = input("please enter your username: ")
- password = input ("Please enter your password: ")
- if username != "MrDLeeman" or password != "Leemanb83":
- print ("Incorrect username or password please retry")
- continue
- else:
- break
- print("Correct username and password, please continue.")
- print ("")
- print (30 * '-')
- print (" M A I N - M E N U")
- print (30 * '-')
- print ("1.Add student ")
- print ("2.Edit student ")
- print ("3.View student ")
- print ("4.View report ")
- print ("5.Close ")
- print (30 * '-')
- choice = input('Enter your choice [1-5] : ')
- choice = int(choice)
- if choice == 1:
- print (30 * '*')
- print ("Important notice :")
- print ("Before adding a child create a blank .txt document with the")
- print ("title as the students full nanme no spaces")
- print (30 * '*')
- print ("")
- print ("Please enter the following: ")
- sforname = input("Forname: ")
- ssurname = input("Surname: ")
- dob = input("Date of birth: ")
- gender = input("Gender: ")
- Address = input("Address: ")
- Homephone = input("Home phone number: ")
- print ("Please take note of the following: ")
- semail = print(sforname,".",ssurname,"@Treeroad.com")
- uidnum = print(random.randint(1000, 9999))
- elif choice == 2:
- print ("Starting user management...")
- elif choice == 3:
- print ("Rebooting the server...")
- elif choice == 4:
- print ("Starting user management...")
- elif choice == 5:
- print ("Rebooting the server...")
- else: ## default ##
- print ("Invalid number. Try again...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement