n=int(input("1부터 몇까지 더할까요?"))
total=0
for i in range(1,n+1):
    total=total+i
    print=("1부터",n,"까지 더한 값은:" , total)

Embed on website

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