So far, we’ve mainly been working with data structures that reside in the interpreter itself. What little interaction our programs have had with the outside world has been through
You can open files with the
open function, which has the following syntax:
open(name[, mode[, buffering]])
open function takes a file name as ...