Demo entry 6720337

abcd

   

Submitted by anonymous on Mar 16, 2018 at 09:13
Language: Python 3. Code size: 374 Bytes.

def check_369_game(number):


    sub1="3"
    sub2="6"
    sub3="9"
    ans = number.count(sub1) + number.count(sub2) + number.count(sub3)

    if(ans ==0):
        print(number)
    elif(ans==1):
        print(clap)
    elif(ans==2):
        print(clap*2)
    elif(ans==3):
        print(clap*3)

number = input("Enter a number: ")
check_369_game(number)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).