'''
시퀀스 자료형 특징
1. 원소에 순서가 있다
2. 특정 원소를 조회할 수 있다
3. 원소의 길이를 확인할 수 있다
4. 연결 연산을 할 수 있다
5. 반복 연산을 할 수 있다
'''
#4. 연결 연산을 할 수 있다 +
print('안녕'+'하세요')
a = ['o', 'n'] + ['c', 'e'] +[1, 2]
print(a)
#5. 반복 연산을 할 수 있다 *
print('hi' * 3)
b = ['bye'] * 5
print(b)
print('-----반복문for-----')
#for :시퀀스의 길이만큼 명령을 반복한다
'''
for 변수 in 시퀀스:
반복할 명령
'''
for i in [1, 2, 3]:
print('*')
for i in 'abcd':
print(i)
print('----문제1----')
menu = ['김밥', '라면', '떡볶이', '돈가스']
for item in menu:
print(item)
To embed this project on your website, copy the following code and paste it into your website's HTML: