What is the output for the given python code?
try:    
    fileptr = open("file.txt","r")    
except (ArithmeticError, IOError) as e:
    print(e)
else:      
    print("Successfully Done")    
    fileptr.close()   

Note: Consider the file.txt, not at the current working directory. 

1
division by zero
2
Successfully Done
3
No such file or directory: 'file.txt'
4
None of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation