Question: A function that returns True if one of its inputs is the square of the other one, and False otherwise. Sample runs would be as

A function that returns True if one of its inputs is the square of the other one, and False otherwise. Sample runs would be as follows.
print(is_square(3,2))
False
print(is_square(2,3))
False
print(is_square(2,2))
False
print(is_square(2,4))
True
print(is_square(9,3))
True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!