mercredi 14 janvier 2015

How do I conditionally execute code based on if a function is called or not?

how can I do this: in python, how can I do a loop or an if statment, that to get in the loop/ the if statment, you need a function to be called. I mean something like this:



if function() *is called*:
print('function() is called')


thanks


Aucun commentaire:

Enregistrer un commentaire