getattr 28a 2c command 29 28newset 29

Solutions on MaxInterview for getattr 28a 2c command 29 28newset 29 by the best coders in the world

showing results for - "getattr 28a 2c command 29 28newset 29"
Noah
30 Nov 2019
1class Person:
2    age = 23
3    name = "Adam"
4
5person = Person()
6print('The age is:', getattr(person, "age"))
7print('The age is:', person.age)