A Dat @ the Supermarket


#1

How can I proceed?
I have formulated this code and how can I specific apple, price and stock with out the rest of the items


#2

Everything should be inside the for block:

for ____:
    # code
    # code
    # code

Instead of, "apple: %s" use what is expected:

print "price: %s" ...

#3

Thx mate it worked, the question was not that clear I thought, it has to print just the required item (apple, stock) not the rest.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.