More with"for"


#1


More with 'for'

File "python", line 5
square_list.append(number**)
^
SyntaxError: invalid syntax


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


#2

if you want the square of a number, i would to the power of 2 (^2) or in python syntax:

**2

the 2 is missing in your case


#4

^2 is the mathematical notation, you are programming in python so you need the python syntax for it (**2)


#5

tnx that was helpful.


#6