More with For


#1



More with for


Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: unexpected indent (python, line 6)

File "python", line 6
square_list.sort()
^
IndentationError: unexpected indent


My Code

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


#2

never mind I accidentally put a space and it messed it up


#3

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