Hi Guys, pls help me with the below code.
start_list = [5, 3, 1, 2, 4]
square_list = []
Your code here!
for square_list in start_list:
square_list.append(start_list ** 2)
square_list.sort()
print square_list
This gives me below error
Traceback (most recent call last):
File “python”, line 6, in
AttributeError: ‘int’ object has no attribute ‘append’
Please let me know what I’m missing here.