import random,string

vowels="aeiouy"
consonents="bcdfghjklmnpqrstvwx"
letters =string.ascii_lowercase

letter_input1=input("what letter do you want? Enter 'v' for vowels,'c' for consonents,'l' for any letter: ")
letter_input2=input("what letter do you want? Enter 'v' for vowels,'c' for consonents,'l' for any letter: ")
letter_input3=input("what letter do you want? Enter 'v' for vowels,'c' for consonents,'l' for any letter: ")

def generator():
    if letter_input1 =='v':
        letter1=random.choice(vowels)
    elif  letter_input1 =='c':
        letter1 =random.choice(consonents)
    elif letter_input1 =='l':
        letter1 =random.choice(letters)
    else:
        letter1=letter_input1

    if letter_input2 =='v':
        letter2=random.choice(vowels)
    elif  letter_input2 =='c':
        letter2 =random.choice(consonents)
    elif letter_input2 =='l':
        letter2 =random.choice(letters)
    else:
        letter2=letter_input2

    if letter_input3 =='v':
        letter3=random.choice(vowels)
    elif  letter_input3 =='c':
        letter3 =random.choice(consonents)
    elif letter_input3 =='l':
        letter3 =random.choice(letters)
    else:
        letter3=letter_input3


    name = letter1+letter2+letter3;
    return(name)

for i in range(20):
    print(generator())
