QUESTION IMAGE
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\)
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".
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. results = open("info/bikes.txt","r")