VintageRice

[College] - Zoo Prices

Apr 21st, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. #   -*- coding: cp1252 -*-
  2. #   Date Created: 21/04/2015
  3. #   Author: Kyle Minto
  4. #   Barclays Bank
  5.  
  6. print("**************************");
  7. print("Welcome to Blackpool Zoo  ");
  8. print("Entrance Prices:          ");
  9. print("          Adults: £15.50  ");
  10. print("          Children: £11.25");
  11. print("**************************");
  12.  
  13. questions = ["adult", "child"];
  14. prices = [15.50, 11.25];
  15. total = 0;
  16.  
  17. for i in range(0, len(questions)):
  18.     a = float(input("Enter the number of " + questions[i] + " tickets required: "));
  19.     total += (a * prices[i]);
  20.  
  21. print("The total price is £" + str(round(total, 2)));
Advertisement
Add Comment
Please, Sign In to add comment