how to know if a function has been called before python code example
Example: python how to check if a functions been called
def example():
example.has_been_called = True
pass
example.has_been_called = False
example()
#Actual Code:
if example.has_been_called:
print("foo bar")