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 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
Fix the following code
2 Votes
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
The use of these certificates on LinkedIn
1 Votes
GitHub account connecting issue
3 Votes
Converter minĂșsculas em maiĂșsculas e imprimir
0 Votes
photo upload issue in html code
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes