🧾 Cinema Snack Center
Use:import task_input_06
Sarah is going to the movies and wants to buy popcorn and drinks for her friends. The cinema needs her name, the number of popcorn buckets, the price of each popcorn, and the number of drinks.
Write a Python program that collects this information and calculates her total bill.
- Use
input("What is your name? ")to ask for the customer’s name. Store the answer in a variable calledname. - Use
input("How many popcorns? ")to ask how many popcorn buckets she wants. Store the answer inpopcorn_text. - Convert
popcorn_textto an integer usingint()and store it inpopcorn. - Use
input("Price of each popcorn? ")to ask for the price of one popcorn. Store the answer inpopcorn_price_text. - Convert
popcorn_price_textto an integer usingint()and store it inpopcorn_price. - Use
input("How many drinks? ")to ask how many drinks she 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 2. - Calculate the total popcorn cost and store it in
popcorn_totalusingpopcorn * popcorn_price. - Calculate the total drink cost and store it in
drink_totalusingdrinks * drink_price. - Calculate the complete bill and store it in
total_billusingpopcorn_total + drink_total. - Print exactly two lines:
Customer: <name> Total bill: <total_bill>
