174k views
13 votes
Your program analyzes complex data.

You are going to read text from a file as part of your program.
The program is saved in a folder, which has a subfolder called "numbers."
In the info folder is a text file called "sales.txt."
Which line of code will open sales.txt?
O results = open("sales.txt","r")
O results.open("sales.txt", "w")
O results = open("numbers/sales.txt","r").
O results = open("numbers/sales.txt", "w")

User Pete Minus
by
5.6k points

1 Answer

11 votes
results = open("numbers/sales.txt","r")
User Chirag Dave
by
5.4k points