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
What will happened if we write 2 times file.close() statement?
files
python
1 Vote
5 Answers
29th Mar 2016, 3:45 PM
Dinesh Ingole
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
file = open("/usercode/files/books.txt", "r") #your code goes here file.close()
files
1 Vote
5 Answers
2nd Jan 2022, 2:11 PM
Abiye Iniabere
Can only one file be open at once? If no, does the file.close() method close all open files...
files
python
0 Votes
3 Answers
11th Oct 2016, 2:28 PM
Paul Obasi
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
[SOLVED] Why 'null >= 0' is TRUE?
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
How to add shadow on text
0 Votes
Help me with phyton
2 Votes
Hello
0 Votes
Please help with Sololearn quiz challenge
0 Votes