sum1 = 0 #합계
for i in [1,2,3,4]:
    sum1 = sum1 + i
print(sum1)
sum2 = 0 #합계
for i in [3,6,9]:
    sum2 = sum2 + i
print(sum2)
#369 게임만들기
for i in range(1,51):
    nums = str(i)
    clap = False
    for j in nums:
        if j in ('3', '6', '9'):
            clap = True
            break;
    if clap == True:
        print("짝!")
    else:
        print(i)

Embed on website

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