🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

×
The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Python Bootcamp- Section 8 Files and Functions

Python Bootcamp- Section 8 Files and Functions

Super Learner
0
Votes
1
Answer

Hello,
 
I cannot access the “file explorer” or variable explorer shown in file section: f = open(‘kipling.txt’,’w’)
How do I access the file and variable explorer in Spyder?

1 Answer

365 Team
0
Votes

Hi Matt,
Could you please try ‘reading’ the file (instead of ‘writing’), signified by the letter ‘r’ in the syntax.

f = open(‘kipling.txt’,’r’)

Let us know if it worked.
Best,
The 365 Team