In this python of else program, we will check whether the input number is a square of 6 or not.
Steps to solve the program
- Take a number as input.
- Using an if-else statement check whether the input number is a square of 6 i.e. 36.
- Print the respective output.
num = 37
if num == 36:
print("True")
else:
print("False")
Output :
True
Related Articles
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.
Python program to check whether the given input is a dictionary or not.