-
Forum
-
메인 게시판
-
Tips
-
파이썬 반복문 유형
파이썬 반복문 유형
-
103dong103ho
(103동103호)
-
이 글의 작성자
-
Offline
-
Newbie
-
덜보기
더보기
-
Posts: 94
-
Thank you received: 12
-
-
26 Jul 2019 13:38 - 26 Jul 2019 13:40 #4780
작성자: 103dong103ho
1. range 형
for i in range(1, 11):
print(i)
2. list 형
list1 = ["a", "b", "c", "d"]
for i in list1:
print(i)
3. tuple 형
tuple1 = ['a', 'b', 'c', 'd']
for t in tuple1:
print(t)
4. 문자열 형
str1 = "Hello World"
for s in str1:
print(s)
-
Forum
-
메인 게시판
-
Tips
-
파이썬 반복문 유형
Time to create page: 0.045 seconds