Advertisement
Guest User

Untitled

a guest
Jan 4th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import time
  2. def topicchoice():
  3. print("Please select a topic that you wish to do a test on")
  4. def login():
  5. print("login then")
  6. def register():
  7. data = open("studentlogins.txt",'a+')
  8. print("register then")
  9. RegUsername = input("Please enter the first 3 letters of your of first name along with your age ")
  10. RegPassword = input("Please enter a password of your choice ")
  11. data.write(RegUsername + "," + RegPassword +"\n")
  12. data.close()
  13.  
  14. print("Welcome to Fergus' test")
  15. def menu():
  16. print("Please select an option")
  17. print("1. Login")
  18. print("2. Register")
  19. option = input(": ")
  20. if option == "1":
  21. login()
  22. elif option == "2":
  23. register()
  24. else:
  25. print("That is not a valid option pls try again")
  26. menu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement