All the logic of the program is okay, the program takes the user input and prints an error if the user inputted anything other than a integer, but im not sure how to get the program to loop if the user enters an invalid input.
Passlimit = 10
while Passlimit:
try:
Passinput = int(raw_input("how many characters and numbers would you like for your password to contain? NO LONGER THAN 10 CHARACTERS: "))
if not (Passinput <= Passlimit):
raise ValueError()
except ValueError:
print("Invald input, Please only input numbers")
else:
print("NUMBER SELECTED")
break