+ 1

print a loop of squares in python keeping the range from 0 to 25 the loop shouls stop printing as soon as it encounters the numb

he

23rd Jun 2018, 6:28 AM
Harsh Ris
Harsh Ris - avatar
2 ответов
+ 3
please clarify your question! i guess you are asking to print squares of number from 0 to 25 #this will do the job. for i in range(25): print(i**2)
23rd Jun 2018, 6:57 AM
Nikhil Dhama
Nikhil Dhama - avatar
+ 3
Something like this? for a in range(25): print(a, "squared =", a**2)
23rd Jun 2018, 6:57 AM
David Ashton
David Ashton - avatar