Another problem


the message error is that "square_list should be the same length as start_list"

start_list = [5, 3, 1, 2, 4]
square_list = [25, 9, 1, 4, 16]

# Your code here!
for item in start_list:
    square_list.append(item **2)
print square_list


square_list should be empty (as it was in the beginning of the exercise) and then you should append using the for loop to put all the values from start_list squared in square_list


A post was split to a new topic: Another problem


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