0

In the following code, is there any difference between the last two lines, internally? Or is one just a abbreviation for the other one?

class Foo():
    def say(self, c):
        self.c = c
        print("Foo")

f = Foo()
Foo.say(f,"Speak!")
f.say("Speak!")
physicsGuy
  • 2,581
  • 3
  • 20
  • 31

0 Answers0