Question 6: Input Cinema Snack Center

🧾 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 called name.
  • Use input("How many popcorns? ") to ask how many popcorn buckets she wants. Store the answer in popcorn_text.
  • Convert popcorn_text to an integer using int() and store it in popcorn.
  • Use input("Price of each popcorn? ") to ask for the price of one popcorn. Store the answer in popcorn_price_text.
  • Convert popcorn_price_text to an integer using int() and store it in popcorn_price.
  • Use input("How many drinks? ") to ask how many drinks she wants. Store the answer in drinks_text.
  • Convert drinks_text to an integer using int() and store it in drinks.
  • Store the price of each drink in a variable called drink_price and set it to 2.
  • Calculate the total popcorn cost and store it in popcorn_total using popcorn * popcorn_price.
  • Calculate the total drink cost and store it in drink_total using drinks * drink_price.
  • Calculate the complete bill and store it in total_bill using popcorn_total + drink_total.
  • Print exactly two lines:
    Customer: <name>
    Total bill: <total_bill>
Write what you are looking for, and press enter to begin your search!