More with 'for'


#1

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

for number in start_list: # Your code here!
2 ** numberm
square_list.append(2 ** number)
square_list.sort()

print square_list

Whats is wrong with de code?

Thx for your help!


#2

here:

2 ** numberm

this line is not doing anything, remove it. Anything that is nested inside the for loop should have indent, 4 spaces/1 tab is common practice


#3

Well Done!!

Thx Dude!


#4