Syntax error: can't assign to function call


#1

This is my code not sure what they mean by that syntax error. I am on Part 9 of list and dictionaries More with 'for'

start_list = [5, 3, 1, 2, 4]
square_list = []

for number in start_list:
start_list.append(number) = number ** 2
start_list.sort(number)

print square_list


#2

The list is still empty. Your code is appending the wrong list.


#3

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