I am trying to create a quiz which is supposed to have a registration feature that stores the user input into an external file. I just need help on how to store the user input.
This is my code:
def register():
name = input("Please enter your full name: ")
age = input("Please enter your age: ")
year = input("Please enter your year group: ")
username = (name[:3] + age)
print("Your username is " + username)
password = input("Please enter a password: ")