Special number following the rules

Special number following the rules 

    ->sum of digits is 7

    ->any digit is 7

    ->number divisible by 7 


    n=int(input())

    s=0

    for i in str(n):

        s+=int(i)

        if(s==7):

            a=True

        else:

            a=False

    for i in str(n):

        if(int(i)==7):

            b=True

        else:

            b=False

    if(a or b or n%7==0):

        print("Special Number")

    else:

        print("Normal Number")

        


Comments