Simple Password Generator Using Functions

I made a simple password generator.

It asks for 4 parameters and then uses them to create an easy to remember yet strong password.

Here’s the code:

#Generating function

def generate(a, b, c, d,):

    print(f”Password is: {a}{b}{c}{d}”)

pet = input(“Enter the name of your favorite pet: “)

symbol= input(“Enter your favorite symbol: “)

food = input(“Enter your favorite food: “)

number = input(“Enter your favorite number: “)

generate(number, symbol, food, pet,)


Posted

in

by

Tags:

Comments

2 responses to “Simple Password Generator Using Functions”

  1. Ace_Carpenter Avatar

    What do you think of that one Mr. Wilmoth?

Leave a Reply

Your email address will not be published. Required fields are marked *