Check out the entire playlist with Python lectures! • Python lectures
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
Watch video Different ways to use objects and attributes in Python online without registration, duration hours minute second in high quality. This video was added by user Sebastiaan Mathôt 19 September 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,431 once and liked it 53 people.