+ 1

is there any way to practies with files in sololearn

i want to practise files in python, is there any way to do it?

26th Jul 2020, 10:02 AM
Mr. 12
Mr. 12 - avatar
2 odpowiedzi
+ 7
Yes, but the file will only stay open during tge execution. Once executiom is terminated, the file will be deleted. You can see im the code that the file doesn't exist at first, but when we try to write a file that doesn't exiar it gets created. NOTE: os.listdir() will contain the name of files and directories in the current directory https://code.sololearn.com/c2C0nmQCxC8A/?ref=app
26th Jul 2020, 10:18 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Mr. 12 You cannot learn or Practice all about files here in SoloLearn. But Maybe this can help you to some extent Opening Files in Python https://www.sololearn.com/learn/Python/2445/?ref=app Reading Files in Python https://www.sololearn.com/learn/Python/2446/?ref=app Writing files in Python https://www.sololearn.com/learn/Python/2447/?ref=app Working with files in Python https://www.sololearn.com/learn/Python/2448/?ref=app Packaging in Python https://www.sololearn.com/learn/Python/2490/?ref=app
26th Jul 2020, 10:27 AM
Akash Sharma
Akash Sharma - avatar