Posts

Showing posts with the label Lucky number3

Lucky number3

  Lucky number3     ->divisible by 9     -> any one digit can be 9     ->prints Lucky Number else Unlucky Number      n=int(input())      for i in str(n):          if(int(i)==9):              a=True          else:              a=False      if((n%9==0) or a):          print("Lucky Number")      else:           print("Unlucky Number")