"""Python Program to Form a Dictionary from an Object of a Class"""

class A:

    def __init__(self):
        self.A = 1
        self.B = 2

obj = A()

print(obj.__dict__)
b593904db2881ad7375dbf6dd9aaf61edb72262c
<mask token>


class A:
    <mask token>


<mask token>

<mask token>


class A:

    def __init__(self):
        self.A = 1
        self.B = 2


<mask token>

<mask token>


class A:

    def __init__(self):
        self.A = 1
        self.B = 2


<mask token>
print(obj.__dict__)

<mask token>


class A:

    def __init__(self):
        self.A = 1
        self.B = 2


obj = A()
print(obj.__dict__)

"""Python Program to Form a Dictionary from an Object of a Class"""

class A:

    def __init__(self):
        self.A = 1
        self.B = 2

obj = A()

print(obj.__dict__)