19 Feb Aurora Saturday 16:30 Python Homework 20.02.15.
Write a program to ask the user to enter an ingredient for pizza for 3 times. After entering three ingredients, the program will show the message “We will add …. into your pizza.”.
Please enter an ingredient for your pizza: mushroom
Please enter an ingredient for your pizza: green pepper
Please enter an ingredient for your pizza: cheese
We will add mushroom, green pepper and cheese into your pizza.
Write a program for a movie theater. It will ask how many tickets to buy for each age group. It is $10 for kids, $15 for adults and $8 for seniors. The program will calculate how much money people have paid in total.
How many ticket for kids? 1
How many ticket for adults? 2
How many ticket for seniors? 1
Total money received: $48
You should use input(…) to ask questions and wait for answer. In the sample above the first question is “How many ticket for kids? ” and 1 is the answer for that question, but you can give any answer as you like. Make sure the program will help you to calculate the result.