[스터디] Python -반복문
2022. 8. 3. 01:05ㆍETC/Python
728x90
반응형
기본적인 반복문, 인덱스번호 출력
list = list(map(int, input().split()))
for i in range(0, len(list)) :
print(i)
배열의 아이템 출력
list = list(map(int, input().split()))
for item in list :
print(item)
728x90
반응형
'ETC > Python' 카테고리의 다른 글
[Python] 아스키코드 변경 (0) | 2022.08.08 |
---|---|
[Python] 사칙연산 (0) | 2022.08.08 |
[스터디] Python -순열(permutations), 조합(combinations) (0) | 2022.08.03 |
[Python] 입출력(input/print), 배열정렬(sort) (0) | 2022.08.03 |