Paired Programming Activity
Loop Problems, part 2

Activities

I would like you to attempt to complete several small Python scripts working with your partner.

Please try to make your program output look as much like the example as possible and verify it works with the example input provided. If you have difficulty finding the information or understanding how to approach the problem, you should contact me.

To complete this activity, you will need to create the following scripts:

 

 


LOOP 4

What's in a name?

You are all currently or going to be teachers. You will be surprised at how many times you have classes filled with the same names. In this activity we will count a class list to see how many times a certain name appears.

For testing purposes you can use:

 

 


LOOP 5

He is quite the character

There is this strange little bit of English/literature lore about a book called Gadsby. Gadsby is a 1939 Novel (by Ernest Vincent Wright) that does not contain ANY words that include the letter e. The MOST common letter in the English language. Yep, not ONE e in the entire book.

This function could test that I suppose

 


LOOP 6

Golden Panda has the best Mu Shu Pork

A particular Chinese buffet determines the price of your meal based on the age of the guests.

 

Write a Python function that conform to the following: