How do I delete a command in a certain result:
pass1 = input("What is your password: ")
pass2 = input("Rewrite your password: ")
if len(pass1) > 5:
print ("")
else:
print ("Your password must be at least 5 characters long")
print ("*******************")
print ("Loading...")
print ("*******************")
time.sleep(1)
if pass1 == pass2:
print ("All right, your password is: " + pass1)
else:
print ("Sorry, your passwords don't match")
basically when I run this and type in a password that is not 5 characters long it still shows what my password is.
What I am trying to do is when a password is not 5 characters long I want it to make that not show up.
if pass1 == pass2:
print ("All right, your password is: " + pass1)
else:
print ("Sorry, your passwords don't match")