Thursday, April 3, 2014

HW 20 - For and If - Ice Cream.py

Tonight, you need to code the following situation:

You go to an ice creme parlor, and are presented with 10 flavors.  Some of the flavors you like, and some you don't. (You can decide the flavors, and the ones you like).

Write a program that will iterate over a list of all of the flavors.

Inside your loop, use an IF statement to tell if you like the flavor or not.

Your output should look something like this:

Chocolate - I like it
Vanilla - I don't like it
Strawberry - I don't like it
Mint - I like it
Mint Chip - I like it

No comments:

Post a Comment