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
  • 3,039
  • 3
  • 23
  • 34

0 Answers0