129k views
3 votes
Which step creates a connection between a file and a program in python?

User Coppermill
by
8.7k points

1 Answer

2 votes
The step of opening a file creates a connection between a file and a program.Opening an output file usually creates the file on the disk and allows the program to write data to it.Opening an input file allows the program to read data from the file.
User Ogie
by
8.2k points