Uploaded July 2013 | Updated September 2026, 3 weeks ago
This video shows how the size of the pupil changes in response to light. When a bright stimulus is presented, the pupil rapidly constricts (becomes smaller). When a dark display is presented, the pupil dilates (becomes larger). Note that constriction in response to light occurs much more rapidly than dilation in response to darkness.
This is real data (but schematically depicted, of course) from myself watching a computer display that alternates between black and white every 10 seconds. For more information, see http://www.cogsci.nl/smathot
This video shows how the size of the pupil changes in response to light. When a bright stimulus is presented, the pupil rapidly constricts (becomes smaller). When a dark display is presented, the pupil dilates (becomes larger). Note that constriction in response to light occurs much more rapidly than dilation in response to darkness.
This is real data (but schematically depicted, of course) from myself watching a computer display that alternates between black and white every 10 seconds. For more information, see http://www.cogsci.nl/smathot






![Using lists effectively in Python
[https://www.buymeacoffee.com/cogsci] Check out the entire playlist with Python lectures! https://www.youtube.com/playlist?list=PLR-r0edywujd8D-R2Kue1C_wYEK_4Ii71
In this video I show several convenient ways to use lists more effectively when programming in Python 3 or Python 2. Using lists effectively in Python](https://i.ytimg.com/vi/S55yOHvUyGk/mqdefault.jpg)
![7 More Tricks to Write Better Python Code
[https://www.buymeacoffee.com/cogsci] This video is a follow-up to 7 Simple Tricks to Write Better Python Code. It again shows seven simple techniques for writing better and easier-to-read Python code.
- 00:30 Inline if-else statements
- 03:00 Sequence comparisons
- 10:00 Extended unpacking (Python-3 only)
- 13:57 Dict comprehensions
- 18:25 collections.OrderedDict
- 21:30 collections.defaultdict
- 26:17 collections.Counter 7 More Tricks to Write Better Python Code](https://i.ytimg.com/vi/SNTZpy0oDB8/mqdefault.jpg)


