Computer Science, asked by yasho5427, 10 months ago

Write a program ta input a number and check if the number is duck in python proggramming

Answers

Answered by Amido23
2

ducknum = "1023"  

first_digit1 = num1[0]  

 

if( check_duck(ducknum) > 0 and first_digit1 != '0') :  

   print  "It is a duck number"

else :  

   print "It is not a duck number"

Answered by pavithranatarajan855
3

Answer:

num=input()

if(num[0]!='0' and int(num)>0):

 print("n is a duck number")

else:

 print("n is not a duck number")

Explanation:

Similar questions