'''
for문 - 시퀀스의 길이만큼 반복한다
for 변수 in 시퀀스:
반복할 명령
'''
for i in [1, 2, 3, 4, 5]:
print(i)
for i in 'apple':
print(i)
for a in (1, 'p', [1, 2]):
print('안녕')
print('@')
print('!')
print('----문제----')
# 🍕 문제: 오늘의 저녁 메뉴 추천!
# 1. 저녁 메뉴 후보들을 리스트나 튜플로 menu에 저장하세요. (3개 이상)
# 2. `for`문을 사용하여 메뉴들을 한 줄씩 출력해 보세요.
# for문의 변수 이름은 item
menu = ['피자', '파스타', '스테이크']
for item in menu:
print(item)
for i in ['!', '@']:
print('!')
print('@')
print('#')
# 출력 결과
# !
# @
# !
# @
# #
To embed this project on your website, copy the following code and paste it into your website's HTML: