Skip to main content

4.10) Exercise 6: Solution


shopping_debugging_solution.py

  • Line 11: PRINT should be lower case
  • Line 9: buy_a instead of buy_A
  • Line 4: switch the words apples and oranges
  • Line 3: We want the result to be an integer, so ‘o’ should be an integer from the start. Write 0 instead of 0.0