Question 9: Operators Sarah Lemonade

Sarah is running a lemonade stand. She bought lemons for $80, sugar for $50, and cups for $30. She sold all cups of lemonade for $200. Write a Python program to calculate how much profit Sarah made from selling lemonade.

  • Start by asking for Sarah’s name and store it in a variable called name.
  • Define variables for the costs:
    • Store the cost of lemons in a variable called lemon_cost and set it to 80.
    • Store the cost of sugar in a variable called sugar_cost and set it to 50.
    • Store the cost of cups in a variable called cup_cost and set it to 30.
    • Store the selling price of all the lemonade drink in a variable called selling_price and set it to 200.
  • Calculate the total cost of ingredients by adding the cost of lemons, sugar, and cups.
  • Calculate the profit by subtracting the total cost from the total revenue.
  • Print a message that includes Sarah’s name and the profit she made in a friendly sentence.
Write what you are looking for, and press enter to begin your search!