← Go Back

How to Get a Function Name as a String

>>> def greet(name):
... print("Hello", name)
...
>>> greet.__name__
'greet'


functions oop


🐍 You might also find interesting: