Keep the first error: raise from
Your task In the code box, write a function parse_qty(text) that gives back int(text). If that fails, it raises ValueError with the message Bad quantity: followed by the text in quotes (like Bad quantity: 'ten'), chained from the original error. Then press Run my code.
Getting the editor ready
