Python File Objects Explained in Simple Terms
What is a file object? -
A file object is a remote control for a file: you don’t become the file, you control how to read from it or write to it.
You get a file object using open().
f = open("file1.txt" , "r")
"file1.txt" → file name
"r" → mode (r...
indrajeet-codes.hashnode.dev4 min read