0
1.3kviews
Write a Python Program to Check if a Number is Odd or Even
1 Answer
| written 3.6 years ago by |
A number is even if it is perfectly divisible by 2. When the number is divided by 2, we use the remainder operator % to compute the remainder. If the remainder is not zero, the number is odd.
In this program, we ask the user for the input and check …