225,343 views
16 votes
16 votes
Finish the code to open a file to retrieve its contents.

import csv
inFile = open('pets.txt','___')

User Dima Kurilo
by
2.7k points

1 Answer

24 votes
24 votes

Answer:

import csv

inFile = open('pets.txt','r')

User Nikita P
by
3.1k points