How to dynamically access class properties in Python? May 27, 2023 by Tarik setattr(my_class_instance, 'attr_name', attr_value)