Python if else program tutorial for beginners

Program Definition

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

Let's start the program tutorial.
The steps are:
1. Take input
2. Apply if and else
3. Print the output message

The input

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

The process if else statement

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. 

Thank you very much for reading this story. I hope you learn the concept of if-else after reading this story. Follow the link given below to get access of programs like this. 

Click Here

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