If there is an error in opening a file, which exception is raised ?
IndexError
IOError
ImportError
TypeError
If there is an error in opening a file, which IOError exception is raised.
If file is not available in the location, then FileNotFoundError exception is raised
Comment here: