I have just began my python journey
I am trying to write a code to check if vaue x y z are even numbers
This is my code
I don't even know what it's doing but I understand (via textbook) that %2 ==0 checks if there is a remainder left and if so, then its not an even number.
I am trying to write a code to check if vaue x y z are even numbers
This is my code
if x %2 == 0: or y %2 == 0: or z %2 == 0: print("This is an even number")There is a syntax error and I don't know how to correct it.
I don't even know what it's doing but I understand (via textbook) that %2 ==0 checks if there is a remainder left and if so, then its not an even number.
Larz60+ write May-02-2021, 06:32 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.