Please help .format() method


Took a knack at using the .format() method can't seem to get it to work. Would appreciate it if anyone who understands this could please take a look.

class Person:
  def __init__(self, name): = name
  def greet(self, other_name):
    return "Hi {0}, my name is {1}".format(other_name, name)


Did the reply i send to your personal message help?