VintageRice

[College] - Food Order

Apr 21st, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. #   -*- coding: cp1252 -*-
  2. #   Date Created: 21/04/2015
  3. #   Author: Kyle Minto
  4. #   Food Order
  5.  
  6. print("**************************************");
  7. print("Place an order for food - All items £1");
  8. print("**************************************\n");
  9.  
  10. questions = ["cheese burgers", "french fries", "portions of pizza", "pepsi"];
  11. total = 0;
  12.  
  13. for i in range(0, len(questions)):
  14.     a = input("How many " + questions[i] + " would you like?: ");
  15.     total += a;
  16.  
  17. print("\nYour order comes to £" + str(total));
Advertisement
Add Comment
Please, Sign In to add comment