Entrada de género de Python


def prefix(genders):
    if(genders == 'male' or genders == 'Male'):
        print(f"You're a {genders}.")
    elif(genders == 'female' or genders == 'Female'):
        print(f"You're are a {genders}.")
    else:
        print('unknown gender')

genders = input('Please, enter your gender: ')

prefix(genders)
Layz