Yes you can definitely have functions outside of a class.
Read moreHow do you call a function from another class in Python?
How to call a class method from another class in Python
Read moreHow do you call a class function from another class function?
As both of the Classes contain Static Function , you cannot call the thoes function by creating object. For calling the method of one class within the second class, you have to first create the object of that class which method you want to call than with the object reference you can call the method.
Read moreHow do you call a method from another class?
To class a method of another class, we need to have the object of that class . Here, we have a class Student that has a method getName() . We access this method from the second class SimpleTesting by using the object of the Student class.
Read more