Which of these will raise a `RuntimeError` in Python 3?

Python Professional Hard

Python Professional — Hard

Which of these will raise a `RuntimeError` in Python 3?

Key points

  • `next()` on an exhausted generator raises `RuntimeError`
  • Modifying a list while iterating over a copy can cause unexpected behavior
  • Using `super()` without arguments is valid in Python 3
  • Defining a class with no methods is allowed in Python

Ready to go further?

Related questions