Question 4: Operator Class Party

🎉 Class Party Snacks

Use: import task_operators_04

Lily is planning a class party. There are 24 students in her class. She wants to give each student 3 cookies and 2 cupcakes. Cookies come in packs of 6, and cupcakes come in packs of 4. Write a Python program that calculates how many packs of cookies and how many packs of cupcakes Lily needs to buy.
  • Store the number of students in a variable called students and set it to 24.
  • Store cookies per student in a variable called cookies_per_student and set it to 3.
  • Store cupcakes per student in a variable called cupcakes_per_student and set it to 2.
  • Calculate the total cookies needed and store it in total_cookies using students * cookies_per_student.
  • Calculate the total cupcakes needed and store it in total_cupcakes using students * cupcakes_per_student.
  • Calculate how many cookie packs are needed and store it in cookie_packs using total_cookies // 6.
  • Calculate how many cupcake packs are needed and store it in cupcake_packs using total_cupcakes // 4.
  • Print exactly two lines in this format:
    Cookie packs: <cookie_packs>
    Cupcake packs: <cupcake_packs>
    Use a separate print() call for each line.
Write what you are looking for, and press enter to begin your search!