[https://www.buymeacoffee.com/cogsci] Visit http://python.cogsci.nl/ for more tutorials! Seven solutions to common small problems that Python programmers often solve in a suboptimal way. This video is understandable for beginners, but also contains useful advice for experienced programmers.
- 0:50 Using enumerate()
- 3:22 Using zip()
- 6:35 Tuple unpacking
- 9:40 Default dict values
- 12:42 For ... else
- 16:13 File reading with 'with'
- 19:40 Exception handling