More with for!


#1

for start_list in start_list:
square_list.append(start_list**2)
square_list.sort()

ok so i keep getting an error that says I’m modifying the start_list


#2

The iterator variable needs to be different from the object.


#3

Whenever i put square_list i get another error since it’s just looping something empty


#4

ok i got it, i didn’t know numbers was not a string, and ended up using it in the loop and .append


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.