Search for question
Question

File 170, and Exception

(5 pts) Answer below sub questions on handling exceptions:

a) What is the difference between a SyntaxError and a NameError exception in Python? (1

pts)

b) How can you create custom exceptions in Python? (1 pts)

c) What is the difference between an exception and an error in Python? (1 pts)

d)

How can you handle exceptions that occur in a function that is called within another

function? (1)

e) How can you handle multiple exceptions in a single except block in Python? (1 pts)

Fig: 1