Write a python program to accept a number and check whether number is od ro even.

The steps are:

1. Take input

2. Apply if and else

3. Print the output message

Take the input to check the number. Use input() function with type conversion function int().

The process starts with if and the condition to check a number is even as if the number is divisible by 2 then its even else it is odd.

Share this story with more learners and help them to learn python if else statements.