test_list = ['one', 'two', 'three']
for i in test_list:
print(i)
>> 출력
one
two
three
for i in range(1, 5):
print(i)
>> 출력
1
2
3
4
for i in range(0, 10, 2):
print(i)
>> 출력
0
2
4
8
a = 1
while a < 10:
a = a +1
print(" %d" % a)
if a == 10:
print("end")
>> 출력
one
two
three