May-13-2021, 04:15 AM
note the escape sequence
Also, in the second snippet you want to
\t
in the file name. use raw string like in the first snippet, escape the back-slash, e.g. \\
or use forward slash.Also, in the second snippet you want to
print(text.read())
. Instead you can iterate over file and print line by line
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs