#반복문 안 썼을 때
print('*')
print('**')
print('***')
print('****')
print('*****')
#반복문 썼을 때
for i in range(11):
print("*" * i)
#for문 쓰는 법
#for 반복횟수를 세어 줄 변수명 in 반복할 범위:
# <반복할 명령어>
#예시 1
for i in [1,2,3]:
print('*')
#예시 2
for i in 'abcdefg':
print('*')
#예시 3
nums = [1,2,3,4]
for i in nums:
print(i,'번 학생은 숙제하세요')
To embed this project on your website, copy the following code and paste it into your website's HTML: