Say i have code that does something complicated and prints the result, but for the purposes of this post say it just does this:
class tagFinder:
def descendants(context, tag):
print context
print tag
But say i have multiple functions in this class. How can i run this function? Or even when say i do python filename.py.. How can i call that function and provide inputs for context and tag?
filename.pyfrom the shell or just calldescendantsfrom elsewhere in your code?