Challenge: Working with Numbers
Swipe to start coding
Imagine a situation where a store launches a promotion: when purchasing 5 items at $17 each, the 6th item is free.
A total of 27 people participated in the promotion.
Calculate the total revenue from this promotion using multiplication.
Note
To check your answer automatically, we wrapped your calculation inside a small helper function. You don't need to worry about how functions work yet, just focus on the calculation. You will learn about functions later in this course.
Your task is to replace the blank (
___) with the correct multiplication result.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.35
Challenge: Working with Numbers
Swipe to show menu
Swipe to start coding
Imagine a situation where a store launches a promotion: when purchasing 5 items at $17 each, the 6th item is free.
A total of 27 people participated in the promotion.
Calculate the total revenue from this promotion using multiplication.
Note
To check your answer automatically, we wrapped your calculation inside a small helper function. You don't need to worry about how functions work yet, just focus on the calculation. You will learn about functions later in this course.
Your task is to replace the blank (
___) with the correct multiplication result.
Solution
Thanks for your feedback!
single