def num_checker(password): num_count = 0 ps = str(password) if not any(c.isdigit() for c in password): print("Please have at least 1 number in your password!") def main(): password = input("Enter your password: ") num_checker(password) main()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)