title: Find Out If a Function has been Called
body: <p>I am programming in Python, and I am wondering if i can test if a function has been called in my code </p>
  
  <pre><code>def example():
      pass
  example()
  #Pseudocode:
  if example.has_been_called:
     print("foo bar")
  </code></pre>
  
  <p>How would I do this?</p>