Answer
The output value of given program will be:
A
A
Work Step by Step
__str__ method is used to update what will be printed when the class instance is directly putted inside the print function. __str__ is defined in class A and it prints a constant string "A" so that will be printed when object is putted inside the print()