Using the for loop


#1

this is my code

start_list = [5, 3, 1, 2, 4]
square_list = []
for number in start_list:
sqaure_list.append(number**2)
square_list.sort()# Your code here!

print square_list

this is my error

Traceback (most recent call last):
File "python", line 4, in
NameError: name 'sqaure_list' is not defined


#2

This could be an indentation


#3

i dont know why its not appearing here as i typed it but i indented 4th line

sqaure_list.append(number**2)


#4

@blogmaster36220
@chrisobigoth

You misspelled square_list.


#5

WOW! good observation oni-chan desu! DESU! :heart_eyes:


#6