본문 바로가기

Series

for [Python] range


# Python 3

for i in range(4):
print(i)

""" Output
0
1
2
3
"""


'Series' 카테고리의 다른 글

for foreach [C#] int  (0) 2018.06.20
for [Python] List  (0) 2018.06.20
Iterator [C++] vector, begin, end  (0) 2018.06.17
Generator [Python] my_generator(), yield from  (0) 2018.06.16
Generator [Python] infinite_generator(), yield, next()  (0) 2018.06.16