[정올] 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")
'Coding_Algorithm > 정올 문제풀이' 카테고리의 다른 글
[정올] Language Coder_선택제어문_자가진단7_code534 (Python) (0) | 2021.02.02 |
---|---|
[정올] Language Coder_선택제어문_형성평가3_code122(Python) (0) | 2021.01.28 |
[정올] Language Coder_연산자_형성평가5_code115(Python) (0) | 2021.01.28 |
[정올] Language Coder_연산자_자가진단6_code523(Python) (0) | 2021.01.28 |
[정올] Language Coder_입력_형성평가5_code110(Python) (0) | 2021.01.28 |