human
I am working on the file "02 strings and text/02.15 interpolating variables in strings.ipynb".
The first task is:
vars() 还有一个有意思的特性就是它也适用于对象实例。比如：
Can you write Python program for it?
assistant
#Here is the Python program you requested.

class Info:
    def __init__(self, name, n):
        self.name = name
        self.n = n

a = Info("Guido", 37)
s.format_map(vars(a))