- This event has passed.
7 PM – Intro To Python
February 19, 2021 @ 7:00 pm - 8:00 pm
- Homework:
- Feb19_ListForLoopHomework.py
- Create a list of String, “pizzas” : beef, peperoni, cheese, mushroom, bacon
- Create a for loop that will go through each element inside pizzas list and do the following
- if pizza is either beef, pepperoni or bacon, it will print “<pizza type> is a meat pizza”
- if pizza is cheese or mushroom, it will print “<pizza type> is a vegetarian pizza”
- Result should like this
- beef is a meat pizza
- pepperoni is a meat pizza
- cheese is a vegetarian pizza
- mushroom is a vegetarian pizza
- bacon is a meat pizza
- if you guys have question, you guys can email me at gamas@ayclogic.com or text me to 626-532-7844.