Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

your program analyzes complex data. to share your results, you are goin…

Question

your program analyzes complex data. to share your results, you are going to write text to a file in your program. the program is saved in a folder, which has a subfolder called \info.\ in the info folder is a text file called \bikes.txt.\ which line of code will open bikes.txt? results = open(\info/bikes.txt\,
\) results = open(\bikes.txt\,
\) results = open(\bikes.txt\,\w\) results = open(\info/bikes.txt\,\w\)

Explanation:

Brief Explanations

The file "bikes.txt" is in the "info" sub - folder. To open it for reading (since we are likely just accessing it for sharing results initially), the correct syntax in Python is to specify the relative path "info/bikes.txt" and the mode "r".

Answer:

A. results = open("info/bikes.txt","r")