I know there are many built-in functions in Python that we can use without calling import xxx
first, e.g., map
, range
, len
, etc.
Is there a way I can build such a function myself too? Ideally, I would like to define a function called my_func
, and call my_func
anywhere in my project without calling from xxx import my_func
.