Challenge: Running a Grocery Store
Uppgift
Swipe to start coding
You are running a small grocery store that incurs daily expenses of $2000. To determine whether your business is operating at a profit or a loss, you need to compare your daily revenue to your daily expenses.
- Assign
is_business_successful
toTrue
if therevenue
is greater than or equal to $2000. - Assign
False
tois_business_successful
if therevenue
is strictly less than $2000.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 7