r/learnprogramming • u/[deleted] • Apr 06 '18
Awesome Python Cheat Sheet
Here is a great cheat sheet for Python by Laurent Pointal (whoever you are). Thanks a ton! :)
If you like this sheet, maybe you are interested in our own cheat sheet course consisting of 5 cheat sheets (keywords, basic and complex data structures, object orientation, and tricks).
1.6k
Upvotes
2
u/AkshayD110 Apr 10 '18
Opening a file for reading or writing should always be done using "with". That ways f.close() (closing of file) is taken care with in .