19. Create your own code. What is wrong?


#1

It says it took too long, but it never asks me to input the words

I want to introduce some tasks and then have it read them to you


work = []
num = 0
while num < 3:
    for w in work:
        w = str(raw_input('What dou you have to do? '))
        work.append(w)
    num =+ 1

for w in work:
    print w
else:
    print 'There is no more work'


#2

why do you have a for loop in your while loop? What function does it serve? So far i can tell, none.

Oh, and num =+ 1 is a great way to shorten num = num + 1, but the moment you do this, it should be num += 1, you swapped the plus and equal sign


#3

Thanks, i was not sure how to do it

work = []
num = 0
while num < 3:
w = str(raw_input('What dou you have to do? '))
work.append(w)
num += 1

for w in work:
print w
else:
print 'There is no more work'


#4

Now your while loop will run 3 times, and then print out what you inserted, nicely done

Please read this post about markdown so your code/indent will show, might be useful next time