Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What #open# should we use to read a txt file inside python.py ?
"r")
open("file.txt",
0 Votes
2 Answers
10th Sep 2021, 3:17 PM
Gen Lao
can anybody tell me what has changed
"r")
=
contents")
file
file.close()
initial
open("newfile.txt"
print("finished")
print("reading
print(file.read())
1 Vote
1 Answer
27th Mar 2019, 4:41 AM
èĄè»è±Ș
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Saturn League badge
2 Votes
Sololearn keeps crashing
1 Votes
SHOULD I LEARN HTML OR PYTHON/JAVA
0 Votes
Lua course?
2 Votes
Why producer consumer not working at all
1 Votes
certificate
1 Votes
Adding an image to my html
0 Votes
CSS
1 Votes
Not able to activate account
0 Votes
About Advanced Courses
0 Votes