i wrote a simple password generator but am having trouble with the inputs.
when running password(10) for example, it runs perfectly but when i request for input, it doesn't seem to register the input as an integer.
any advice?
import random
def password(x):
    pw = str()
    characters = "abcdefghijklmnopqratuvwxyz" + "0123456789" + "!@#$%^&*"
    for i in range(x):
        pw = pw + random.choice(characters)
    return pw
x1 = input("How many characters would you like your password to have? ")
while x1 != int():
    print("Please key in an Integer")
    x1 = input("How many characters would you like your password to have? ")
password(x1)
 
     
    