getattr code example
Example 1: getattr(A, command)(newSet)
class Person:
age = 23
name = "Adam"
person = Person()
print('The age is:', getattr(person, "age"))
print('The age is:', person.age)
Example 2: len python 3
len(list) # returns the length of a list, tuple, string, etc.