All challenges
Multiple ChoiceIntermediate 30s

Catching All Exceptions

Choose the best answer for: bare except
Options
  1. 1except: is considered best practice for precise handling
  2. 2except: catches only RuntimeError and its subclasses
  3. 3except: catches all exceptions including SystemExit
  4. 4except: requires an explicit exception type argument

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle