- This event has passed.
4 PM – Intro To Python – Darin
January 29 @ 4:00 pm - 5:00 pm
What We Did Today:
- Reviewed For Loop Homework
- Common errors with For Loops
- Try it Yourself (4-1 Pizzas & 4-2 Animals)
Homework:
Create a file called Jan29_ListForLoopsHW.py and submit the file into the google drive when you are finished!
- https://www.ayclogic.com/animal-list-and-for-loop-exercises/
- Create an empty list: animal_list . Look at page 38 from the book for an example how to create an empty list.
- Ask user 4 times (input from shell): “Enter animal name: “
- Add these 4 animal names into the animal_list list.
- After this, create a for loop and loop through every animal in the list and print to the shell. If the animal is “dog”, print “dog” or “cat” is my favorite animal. This is very similar to what we have done in the class!
Notes:
If you have any questions, feel free to email me at ddjapri@ayclogic.com