...

/

Challenge 2: Python Essentials

Challenge 2: Python Essentials

Complete another challenge to practice what you’ve learned about Python essentials so far.

Function to calculate a receipt

Let’s assume the following scenario: You’re a loyal customer at a store that’s offering the following discounts to its loyal customers:

  • For a purchase between 0 and 50 CAD, you get a 10 percent discount.
  • For
...