TORONTO KIDS COMPUTER CLUB | Aurora Saturday 16:30 Python Homework 20.02.15.
17087
post-template-default,single,single-post,postid-17087,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

# Aurora Saturday 16:30 Python Homework 20.02.15.

## 19 Feb Aurora Saturday 16:30 Python Homework 20.02.15.

Question 1:
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.”.

Sample Input:
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

Sample Output
We will add mushroom, green pepper and cheese into your pizza.

Question 2:
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.

Sample Input:
How many ticket for kids? 1
How many ticket for adults? 2
How many ticket for seniors? 1

Sample Output:
Total money received: \$48

Hint:
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.

##### No Comments

Sorry, the comment form is closed at this time.