Question: squareOrNot(length, width)Write the function squareOrNot that takes two floats; length and width of the rectangle, and returns a bool (True or False). The function will
squareOrNot(length, width)Write the function squareOrNot that takes two floats; length and width of the rectangle, and returns a bool (True or False). The function will return True if the rectangle is a square, otherwise, it will return False. You need to define this function in the script file.
Sample input:
length= 20
width= 5
Expected
Output False
Solve it in Python.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
