Please help .format() method


#1

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):
    self.name = name
  
  def greet(self, other_name):
    return "Hi {0}, my name is {1}".format(other_name, name)

#2

Did the reply i send to your personal message help?