[정올] Language Coder_선택제어문_자가진단6_code533(Python)

두비니

·

2021. 1. 28. 17:54

 

 

 

 

gender, age = input().split()
age = int(age)

if gender == 'F' and age >= 18:
    print("WOMAN")
elif gender == 'F' and age < 18:
    print("GIRL")
elif gender == 'M' and age >= 18:
    print("MAN")
else:
    print("BOY")