🍔 Food Shop Receipt
Use:import task_input_05
Daniel visits a food shop to buy burgers and drinks. The shop needs his name, the number of burgers he wants, the price of each burger, and the number of drinks he wants. Write a Python program that collects this information and calculates his total bill.
- Use
input("What is your name? ")to ask for the customer’s name. Store the answer in a variable calledname. Do not convert this input to an integer. - Use
input("How many burgers? ")to ask how many burgers the customer wants. Store the answer inburgers_text. - Convert
burgers_textto an integer usingint()and store it inburgers. - Use
input("Price of each burger? ")to ask for the price of one burger. Store the answer inburger_price_text. - Convert
burger_price_textto an integer usingint()and store it inburger_price. - Use
input("How many drinks? ")to ask how many drinks the customer wants. Store the answer indrinks_text. - Convert
drinks_textto an integer usingint()and store it indrinks. - Store the price of each drink in a variable called
drink_priceand set it to 3. - Calculate the total burger cost and store it in
burger_totalusingburgers * burger_price. - Calculate the total drink cost and store it in
drink_totalusingdrinks * drink_price. - Calculate the complete bill and store it in
total_billusingburger_total + drink_total. - Print exactly two lines:
Customer: <name> Total bill: <total_bill>
