x=input('enter any number: ')
I'm trying to say whether given number is even or odd using Boolean. but I'm getting error.....help me with this.
2/14/2019 12:59:00 PM
print(bool(y)) not book!
You need to convert the input into int first with int(x).
sorry typo error...I have given bool
Thanks HonFu :)
Learn Playing. Play Learning
Send us a message