DIGIT OF LIFE:

b=False

while b==False: try: a=int(input("Enter your birthday in number format")) b=True except: print("Wrong input") b=False a=str(a) while len(a)!=1: total=0 for i in a: total+=int(i) a=str(total) print(total)

Comments

Popular posts from this blog