# importing random
from random import *

# taking input from user
user_pass = input("Enter your password -> ")

# storing alphabet letter to use thm to crack password
password_set = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 
            'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't','u','v', 
            'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0']

# initializing an empty string
guess = ""


# using while loop to generate many passwords untill one of
# them does not matches user_password
while (guess != user_pass):
    guess = ""
    # generating random passwords using for loop
    for letter in range(len(user_pass)):
        guess_letter = password_set[randint(0, 35)]
        guess = str(guess_letter) + str(guess)
    # printing guessed passwords
    print(guess)
    
# printing the matched password
print("Your password is",guess)
# importing random
from random import *

# taking input from user
user_pass = input("Enter your password -> ")

# storing alphabet letter to use thm to crack password
password_set = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 
            'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't','u','v', 
            'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0']

# initializing an empty string
guess = ""


# using while loop to generate many passwords untill one of
# them does not matches user_password
while (guess != user_pass):
    guess = ""
    # generating random passwords using for loop
    for letter in range(len(user_pass)):
        guess_letter = password_set[randint(0, 35)]
        guess = str(guess_letter) + str(guess)
    # printing guessed passwords
    print(guess)
    
# printing the matched password
print("Your password is",guess)
# importing random # taking input from user # storing alphabet letter to use thm to crack password # initializing an empty string # using while loop to generate many passwords untill one of # them does not matches user_password # generating random passwords using for loop # printing guessed passwords # printing the matched password