In this python if else program, we will check whether the input number is divisible by 12 or not.
Steps to solve the program
- Take a number as input.
- Using an if-else statement check whether the input number is divisible by 12 or not.
- Print the respective output.
num = 121
if num % 12 == 0:
print("True")
else:
print("False")
Output :
False
Related Articles
Python program to check whether the input number is a square of 6 or not.
Python program to check whether the input number is a cube of 3 or not.
Python program to check whether two numbers are equal or not.
Python program to check whether the given input is a complex type or not.
Python program to check whether the given input is Boolean type or not.
Python program to check whether the given input is List or not.