How do I call a method from another method?

You need to use self. to call another method of the same class:

class Foo:
    def __init__(self):
        pass

    def method1(self):
        print('Method 1')

    def method2(self):
        print('Method 2')
        self.method1()

Leave a Comment