Ad
  • Custom User Avatar

    Read the error message:

    ValueError: min() arg is an empty sequence
    

    See which sample test your code fails, then fix your code. There'll be more problems too:

    Do not mutate the original array/list.

  • Custom User Avatar

    That's because you didn't use elif. But it shouldn't matter if you return the price instead of printing it, return ends the function.