What They Never Told You About Programming - Part 3

Isabel is in a beginning programming class and has written the Python code below to try to print "Fruit Salad!" However, she's sad because her code below doesn't print out "Fruit Salad!". Which line in the code below needs to be corrected?

1
2
3
4
    apples = 10                 #line 1
    bananas = 10                #line 2
    if apples = bananas:        #line 3
         print "Fruit salad!"   #line 4
×

Problem Loading...

Note Loading...

Set Loading...