Answer
The answer is below.
Work Step by Step
class A:
$ $ $ $ $ $ $ $ $ $ $ $def __init__(self, i):
$ $ $ $ $ $ $ $ $ $ $ $ self.i = i def main():
$ $ $ $ $ $ $ $ $ $ $ $ a = A()
$ $ $ $ $ $ $ $ $ $ $ $ print(a.i) main()
-This code will generate the error as
" a = A() TypeError: __init__() missing 1 required positional argument: 'i'"
Because at object creation no value is inserted inside A() class, in order to debug this error, insert any value in A as a=A(Value).