Can you let me know in case I would like to put a check condition for a file, in case the file is not available it should print "file is not available, please upload the file". How can I do this?
To print the message that file is not found, use try-except block.
Refer below sample code.
except OSError as e:
print("File " + filename + "is not available, please upload the file.")
number = int(input("enter a number"))
s = 0
temp ...READ MORE
I am looking for a function with ...READ MORE
For Python 3, try doing this:
import urllib.request, ...READ MORE
Hi. Good question! Well, just like what ...READ MORE
if you google it you can find. ...READ MORE
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
Hi @Mike. First, read both the csv ...READ MORE
The right datatype for destination in argpasrse module ...READ MORE
Already have an account? Sign in.