I understand you can do multiple exceptions handling in this way
try:
pass
except EOFError:
deals_with_EOFError()
except FileNotFoundError:
deals_with_FileNotFoundError()
But, I wanted to know how it could be done through something like this
try:
pass
except (EOFError, FileNotFoundError):
if EOFError:
deals_with_EOFError()
else:
deals_with_FileNotFoundError()