n = int(input())
if n == 3 or n ==4 or n ==5:
print('spring')
elif n == 6 or n ==7 or n ==8:
print('summer')
elif n == 9 or n ==10 or n ==11:
print('fall')
elif n == 12 or n ==1 or n ==2:
print('winter')
else:
print('잘못된 데이터입니다')
3
spring
'Dev > Python 기초' 카테고리의 다른 글
[python3] *로 왼쪽정렬 맞추기 (0) | 2022.06.15 |
---|---|
[python3] 소수구하기 (0) | 2022.06.15 |
[python3] 밀리세컨드 (0) | 2022.06.15 |
[python3] 거스름돈 (0) | 2022.06.15 |
[python3] 고무공 높이 계산 (0) | 2022.06.15 |