Another problem


#1


https://www.codecademy.com/courses/python-beginner-en-pwmb1/1/6?curriculum_id=4f89dab3d788890003000096#


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)
    square_list.sort()
  
print square_list


#2

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


#3

A post was split to a new topic: Another problem


#4

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