Check whether the following code is correct or not?
try:
# Do something except:
# Do something
else:
#Do something
a. Yes
b. No, else cannot be used with except
c. No, else can be used after try block
d. None of the above
What is a file in Python and why is it used?
How to open a file? What are the modes for opening a file?
What are the various attributes of the file object?
What are the various directories in Python? Explain with examples.
What is an exception? Explain with examples.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here