Question #251452

1. Here is a list of integers. Find the elements that are the square of any number m.

Expert's answer

def find_squares(lst):
    for n in lst:
        if int(n ** 0.5) ** 2 == n:
            print(n)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS