Perfect squares In a range
import math for i in range(1,int(input(''))+1): if math.sqrt(i).is_integer() == True: print(i,end=' ') 9 1 4 9
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