Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: cp1252 -*-
- # Date Created: 21/04/2015
- # Author: Kyle Minto
- # Barclays Bank
- print("**************************");
- print("Welcome to Blackpool Zoo ");
- print("Entrance Prices: ");
- print(" Adults: £15.50 ");
- print(" Children: £11.25");
- print("**************************");
- questions = ["adult", "child"];
- prices = [15.50, 11.25];
- total = 0;
- for i in range(0, len(questions)):
- a = float(input("Enter the number of " + questions[i] + " tickets required: "));
- total += (a * prices[i]);
- print("The total price is £" + str(round(total, 2)));
Advertisement
Add Comment
Please, Sign In to add comment