for i in [1,2,3]:
    print('*')
    i+=1

for i in "abcd":
    print("#")

for i in range(4): #4번 반복 0~3
    print(i)

for i in range(1, 4): #3번 반복 1~3
    print(i)

for i in range(1, 11, 2): #5번 반복 1부터 10까지 2씩 증가
    print(i)

for i in range(10, 1, -2):
    print(i)

i = 1
while i < 11:
    print(i)
    i+=1

i=10
while i > 1:
    print(i)
    i-=2

#for i in [1,2,3,4,5]:
for i in range(1, 6):
    print('*' * i)

i=1
while i < 6:
    print('*' * i)
    i+=1

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: