classe Python __Call__

#FROM GEEKSFORGEEKS <3
class Example:
    def __init__(self):
        print("Instance Created")
      
    # Defining __call__ method
    def __call__(self):
        print("Instance is called via special method")
  
# Instance created
e = Example()
  
# __call__ method will be called
e() #prints "Instance is called via special method"
Repulsive Rat