Python: using getattr for properties and methods

Photo by Émile Perron on Unsplash

Using getattr