Question #313241

Perfect squares In a range


Expert's answer

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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS