import random

#Computer will randomly select any no. of letters.
letters = ['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','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']

#Computer will randomly select any no. of numbers.
numbers = ['0','1','2','3','4','5','6','7','8','9']

#Computer will randomly select any no. of symbols.
symbols = ['!','#','$','%','&','(',')','*','+']

print("Welcome to the Py Password Generator")

nr_letters = int(input("How many letters would you like in your password ?\n"))

nr_symbols = int(input("How many symbols would you like in your password ?\n"))

nr_numbers = int(input("How many numbers would you like in your password ?\n"))

password = " "

#Now add letters in password.
for char in range(1,nr_letters+1):
    password += random.choice(letters)

#Now add symbols in password.
for char in range(1,nr_symbols+1):
    password += random.choice(symbols)

#Now add numbers in password.
for char in range(1,nr_numbers+1):
    password += random.choice(numbers)

print(password)
