Objective: Solve problems using for loops and lists in Python
Notebook warm-up: Sequencing, selection, or iteration?
- You take each apple of a bag, wash it, and put it in the refrigerator
- If an apple is rotten, you throw it out
- You follow a recipe step-by-step to make an apple pie
Activities
- pig_latin() - one word
- pig_latin_sentence() - a whole sentence
- for loop practice
- minimum(num_list) - return the minimum number in a list
- mean(num_list) - return the average number in a list as a floating point number
- print_odds(num_list) - given a list of positive integers, print only the odd numbers in the list