I am creating a program in Python which asks the user to enter their name. I am also trying to verify this by letting the user type it on twice and the program would only run if the user enters their name correctly twice.
Please have a look at the code below and please provide me with any suggestions
from random import randint
name3 = 1
while name3 == -1:
name = input("Please enter your name ")
name1 = input("Please enter your name again for verification ")
if name == name1 :
print("you may now start the quiz")
else:
print (" The two names are different please enter you your name again")
name3 = name3 + 1