+ 2
How to loop a certain section if input is invalid.
Just wanting to loop password part at the end...Help? https://code.sololearn.com/cj1VIVeH85E8/?ref=app
3 Réponses
+ 7
Put it in an infinite loop:
while True:
x =input("Enter your desired password...Numbers only.")
y = input("Enter your password again.")
if y != x:
print("Error, input not identical try again...")
else:
break
+ 2
Thank you!😋
+ 2
You're welcome 😀