Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 232 Bytes

what_exception_is_raised_lvl_1.md

File metadata and controls

13 lines (9 loc) · 232 Bytes

What Exception is Raised? - Level 1

For each of the following statement, specify what exception will be raised

  1. 'two' > 1
  2. ans = x + y
  3. chars = 'abc'; chars[5]

Solution

  1. TypeError
  2. NameError
  3. IndexError