0

Print a no. Whose unit digit is zero and divisible by 4 and whose first digit is 2 in phython

https://code.sololearn.com/cRK6RGeefi48/?ref=app I HAD DONE THIS BUT IT IS SHOWING ERROR PLEASE HELP✌️✌️🙏

28th Nov 2020, 6:15 AM
Rahul
Rahul - avatar
1 Antwort
+ 2
y = int(input("any no.1 \n")) if y%4==0 and str(y)[0]=='2' and str(y)[-1]=='0': print("good") else: print("bad")
28th Nov 2020, 1:15 PM
Rstar
Rstar - avatar