Number check code

#Atul Challenge #A number is called as "Corona Number" if all the digits in that number are odd for Example:5379(Corona number) 3179(Corona number) 4523 is NOT A Corona number. num=int(input()) tic=[] tac=[] for st in str(num): tic.append(int(st)) for nu in tic: if nu%2==0: tac.append(nu) def corona_checker(): if len(tac)==0: print(str(num) + " Is Corona number") else: print(str(num) + " Is Not Corona Number") corona_checker()

Comments

Popular posts from this blog

ಹಿಂದೂಧರ್ಮದ ಕರೆ - ಸ್ವಾಮಿ ವಿವೇಕಾನಂದ

Rainbow loader with html with CSS