[solved] – Question 89868
A positive integer m is a sum of squares if it can be written as k + x where k > 0, x > 0 and both k and x are perfect squares. Write a Python function sumofsquares(m) that takes an integer m returns True if m is a sum of squares and False otherwise. Here are some examples to show how your function should work.
>>> sumofsquares(41) should return True
>>> sumofsquares(30) should return False
>>> sumofsquares(17) should return True
Expert Answer
OR

