Using the methods indicated in the attached pdf files, download the starter file and complete this exercise.


Create a grocery list


Write a program to create a grocery list where the user will add items one at a time until entering the word “STOP”.

At that point, the program will print out the items in the grocery list, 1 item per line.


Sample output:


PS 1.1.png


Generate lotto numbers


Write a program that generates a list of 10 valid lottery tickets and then prints out the tickets, 1 per line.


Valid lottery tickets in Indiana have 6 values:


5 numbers from 1 to 69 (represented by white balls)

1 number from 1 to 26 (representing the red Powerball)

A valid lottery ticket might look like: 29-1-65-44-39-PB5


Sample output:


PS 1.2.png


Ask questions, print a response


First, ask the user the following three questions and store the answers in a nested list.


What is your name?

What is your quest?

What is your favorite color?