I have coded a simple game where I need the name of two players at the beginning. I want to see whether or not they have duplicate names and if they do, I want to repeat both of the inputs until they do not have duplicate names. Anyone know how to do this?
# Names
player_one = str(input("Enter P1's name")
player_two = str(input("Enter P2's name")
if player_one == player_two:
print("Please enter a different name. ")
# Code here that says 'repeat player_one and player_two'