If I have more than one class in a python script, how do I call a function from the first class in the second class?
Here is an Example:
Class class1():
def function1():
blah blah blah
Class class2():
*How do I call function1 to here from class1*
Functions in classes are also known as methods, and they are invoked on objects. The way to call a method in class1 from class2 is to have an instance of class1: