Uploaded December 2015 | Updated September 2026, 3 weeks ago
[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
[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

![Creating a command-line app in Python [PythonLiveLessons #4]
The fifth episode of #PythonLiveLessons, a weekly live stream about Python code and more, hosted by Sebastiaan Mathôt. In this episode, well turn our `markdown_code_exec` Python module, which we created in previous episodes, into a command-line application! Well learn about the `argparse` module to parse command-like arguments, about entry points, and about the if name main convention.ing Creating a command-line app in Python [PythonLiveLessons #4]](https://i.ytimg.com/vi/VcgBAwdz7aA/mqdefault.jpg)


![Getting started with Git and GitHub [PythonLiveLessons #3]
The fourth episode of #PythonLiveLessons, a weekly live stream about Python code and more, hosted by Sebastiaan Mathôt. In this episode, well get started with git to host the code for our `markdown_code_exec` on GitHub. Well learn about the most important git commands: commit, push, pull, remote, and add. Getting started with Git and GitHub [PythonLiveLessons #3]](https://i.ytimg.com/vi/X99FOxKcdMk/mqdefault.jpg)
![Building your first neural network with Keras and Python [Part 2]
(See https://python.cogsci.nl for code and written tutorials.) This is the second of a series of video tutorials about deep learning with Keras in Python. Here I show how you can build, train, and validate a simple, three-layer neural network. Building your first neural network with Keras and Python [Part 2]](https://i.ytimg.com/vi/XBc3kbel7XY/mqdefault.jpg)


![Installing Rapunzel Code Editor in Anaconda
[https://www.buymeacoffee.com/cogsci] Rapunzel is a code editor for numerical computing with Python and R. In this video I show how to install Rapunzel in Anaconda. For more information, visit https://rapunzel.cogsci.nl/ Installing Rapunzel Code Editor in Anaconda](https://i.ytimg.com/vi/ZPysys3Ew-w/mqdefault.jpg)

