1class Student:
2 marks = 88
3 name = 'Sheeran'
4
5person = Student()
6
7# set value of name to Adam
8setattr(person, 'name', 'Adam')
9print(person.name)
10
11# set value of marks to 78
12setattr(person, 'marks', 78)
13print(person.marks)
14
15# Output: Adam
16# 78