Five Python practice questions based on the if-else concept:
Question 1
Write a Python program that takes a number as input and checks whether it is
even or odd.
Question 2
Write a Python program to check whether a person is eligible to vote or not.
(Consider the voting age to be 18 years.)
Question 3
Write a Python program that asks the user to enter a temperature in Celsius.
If the temperature is below 0, print "Freezing weather"; otherwise, print "Not
freezing weather."
Question 4
Write a Python program that takes a number as input and checks whether it is
positive, negative, or zero.
Question 5
Write a Python program that takes three numbers as input and prints the largest
among them.