दिए गए पायथन कोड के लिए आउटपुट क्या है?
try:
fileptr = open("file.txt","r")
except (ArithmeticError, IOError) as e:
print(e)
else:
print("Successfully Done")
fileptr.close()
ध्यान दें: file.txt,पर विचार करें, करंट वर्किंग डिक्शनरी पर नहीं।
1
division by zero
2
Successfully Done
3
No such file or directory: 'file.txt'
4
इनमे से कोई भी नहीं