New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Is the following syntax valid? file = open("filename.txt","r") print(file.read()) file.close()
files
python
0 Votes
3 Answers
10th Jul 2016, 2:47 AM
Essam Mohamed Mahmoud Ahmed
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
Isogram Detector
2 Votes
Need suggestions what improvements can I do in it
3 Votes
pls how do I write comments in code
0 Votes
What is the generally preferred way of assigning values in Python?
1 Votes
R programming
2 Votes
Help me with phyton
2 Votes
Hello
0 Votes
How to add shadow on text
0 Votes
Please help with Sololearn quiz challenge
0 Votes
Please help me understanding the output. I posted output with code in the file attached.
0 Votes