• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu

Discussions Q&R

What will happened if we write 2 times file.close() statement?
filespython
1 Vote
5 Réponses
29th Mar 2016, 3:45 PM
Dinesh Ingole
Dinesh Ingole - avatar
Is the following syntax valid? file = open("filename.txt","r") print(file.read()) file.close()
filespython
0 Vote
3 Réponses
10th Jul 2016, 2:47 AM
Essam Mohamed Mahmoud Ahmed
Essam Mohamed Mahmoud Ahmed - avatar
file = open("/usercode/files/books.txt", "r")  #your code goes here   file.close()
files
1 Vote
5 Réponses
2nd Jan 2022, 2:11 PM
Abiye Iniabere
Abiye Iniabere - avatar
Can only one file be open at once? If no, does the file.close() method close all open files...
filespython
0 Vote
3 Réponses
11th Oct 2016, 2:28 PM
Paul Obasi
Paul Obasi - avatar
can anybody tell me what has changed
"r")=contents")filefile.close()initialopen("newfile.txt"print("finished")print("readingprint(file.read())
1 Vote
1 Réponse
27th Mar 2019, 4:41 AM
胡軒豪
胡軒豪 - avatar
Aujourd'hui en vedette
Ai generated practices
2 Votes
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
1 Votes
Solving coding challenges
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Changing String Variables into int in C++
0 Votes
I am new
1 Votes
Advertising in Sololearn
0 Votes
Fill in the blank to declare a static variable.
0 Votes
How can i insert files?
1 Votes