#1자리 (1~9)이면 '한 자리 숫자입니다.' 출력
#2자리 (10~99)이면 '두 자리 숫자입니다.' 출력
#3자리 (100~999)이면 '세 자리 숫자입니다.' 출력
num = int(input())
#정수형으로 숫자를 입력받는다.
if num >= 1 and num <= 9:
print('한 자리 숫자입니다.')
elif num >= 10 and num <= 99:
print('두 자리 숫자입니다.')
elif num >=100 and num <=999:
print('세 자리 숫자입니다.')
#별찍기2
star = int(input())
for i in range(1, star+1):
print(f'{i}번째 {"*"*i}')
To embed this project on your website, copy the following code and paste it into your website's HTML: