Answer to Question #251452 in Python for Hilok

Question #251452
1. Here is a list of integers. Find the elements that are the square of any number m.
1
Expert's answer
2021-10-14T16:04:21-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS