Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm trying to open a file in python so i can read it. Why am I getting these errors? python Project - Nolumes/Seagate Backup Plus
I'm trying to open a file in python so i can read it. Why am I getting these errors?
python Project - Nolumes/Seagate Backup Plus Drive/downl 1 Volumes Seagate Backup Plus Drive downloads texts basic_9.py Proj..7 0 - main.py basic_9.py python Project -/Pycharml 1 import os veny 2 main.py 3 os.chdir("/Volumes/Seagate Backup Plus Drive/downloads/texts") > Milli External Libraries Scratches and Consoles 5 print(os.getcwd()) 6 for i in os. listdir(r'/Volumes/Seagate Backup Plus Drive/downloads/texts'): 7 print(i) 8 9 f = open("abc.txt", "r") 10 print(f.read() 4 Run: + + C | D 1 basic_9 basic_9.py bbc.txt cnn.txt fox.txt msnbc.txt newsok.txt usatoday.txt usnews.txt Traceback (most recent call last): File "/Volumes/Seagate Backup Plus Drive/downloads/texts/basic_9.py", line 10, inStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started