Input:
[22,9, 45, 82, 81, 21]
Output:2
t = map(int, input('Enter list of numbers: ').split()) count = 0 for n in t: if round(n ** .5) ** 2 == n: count += 1 print(count)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment