We show you how you can avoid common problems when dealing with files including why you have blank files, problems across Mac-OS, Windows, Linux and online, how ensure your files get closed and the classic that you can't find the file! Definitely prevention is better than cure, but this video both prevents AND cures your Python filing worries!
0:00 Introduction to the 5 problems
0:20 Nothing in my file
1:11 Ok on Mac and Windows, but not online or on Raspberry Pi (Linux)
2:29 It's there, but can't edit or delete
3:51 It's adding stuff to the end of my file
4:39 Can't find my file
4:55 Finding your file in MU
5:34 Code to help find your file in a director or the filename
6:19 Finding your file in Pycharm and most other editors
Helpful snippet of code to generate helpful file error at: https://gist.github.com/jamesabela/27...
If you want a practical coding exercise to follow up, please go to my Python Challenges page:
http://pythonchallenges.weebly.com/fi...
Thank you for the intro music to:
♪ Balloon (Prod. by Lukrembo)
Link : • lukrembo - balloon