for i in "abc":
    print(i)

for i in [1,2,3]:
    print("*")

str = "abcdefg"
for i in str:
    print(i, end=" ")
print()

for i in [1,2,3,4,5]:
    print("*" * i)

for i in range(10): #0~9 10번
    print(i)

for i in range(1, 11): #1부터 11이전까지 10번 반복
    print(i)

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

for i in range(5, 0, -1):
    print(" " * (5-i) + "*" * i)

for i in range(1, 10):
    print(f"2 x {} = {}")
    





Embed on website

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