Read the following code snippet: import types, exceptions def overloaded_get_text(o): if type(o) is type.FileType: text = o.read() else: raise exceptions.TypeError return text Which of the following lines has incorrect syntax?
Correct Answer: if type(o) is type.FileType:
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions