int('nope') raises ValueError. Which plan catches that exception around the conversion?
The path absent.txt does not exist. Your program calls open('absent.txt', 'r'). Which exception does this missing read path cause?
In a plain Python script using default error reporting, an exception that remains uncaught prints an error and stops that script.
Circle one: True False
open('roster.txt', 'r') fails because the path is absent; request another path. int('fern') fails because its text is not an integer; reject the record. Which handlers match these policies?
half_positive accepts only n > 0. It receives n = -8. Which action follows the taught input-rejection policy?
number = 7 try: number = int('bad') except: pass print(number) What is the risk of this handler?
A report must use actual file contents. Reading missing.csv raises FileNotFoundError. Which policy can recover without inventing contents?
A handler catches ValueError with except Exception as err, prints err, then executes bare raise. What does raise do?