35739/get-path-from-open-file-in-python
i have textfile now i want to ...READ MORE
Hello @kartik, Try this out: >>> import os >>> os.path.abspath("mydir/myfile.txt") 'C:/example/cwd/mydir/myfile.txt' Also ...READ MORE
Here is what i found and was ...READ MORE
file = open('text.txt', 'w+) READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
File() has been removed since Python 3.0 ...READ MORE
Assuming you don't have extraneous whitespace: with open('file') ...READ MORE
OR
Already have an account? Sign in.