Modify with validation

Log in om je oplossingen te testen.
repeat = True while repeat == True: print("Enter student name") student_name = input() student_name = student_name + "\n" data_file = open("StudentInfo.txt", "a") data_file.write(student_name) data_file.close() print("Enter another student? y/n") choice = input() if choice == "n": repeat = False print("Goodbye!")