Different ways to use objects and attributes in Python @SebastiaanMath%C3%B4t
Different ways to use objects and attributes in Python  @SebastiaanMath%C3%B4t
Uploaded September 2016 | Updated September 2026, 3 weeks ago
Check out the entire playlist with Python lectures! youtube.com/playlist?list=PLR-r0edywujd8D-R2Kue1C_wYEK_4Ii71

This screencast demonstrates several different ways to represent objects and attributes in Python, using the example of a kitten (the object) with a name and an age (the attributes). The techniques are:

- using a list
- using a dict
- using a namedtuple
- using a (simple) class
- using a class with getters (properties) and setters
- using the attr package
Different ways to use objects and attributes in PythonCreating a psychology experiment with OpenSesame 3.1Sensation and Perception | Biological Psychology 3.2Gestalt Theory | Biological Psychology 3.4Introduction to Memory | Biological Psychology 4.1Chicken head stabilization (collage)Basic Python tricks: List slicing and list comprehensionsDebugging Python | Python tricksOpenSesame 3.1 tutorial: Cats, Dogs, and CapybarasDict comprehensions in Python [Python comprehensions #2]The Honeycomb IllusionOpen Science Framework integration in OpenSesame 3.1
Sebastiaan Mathôt |

Different ways to use objects and attributes in Python

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER