I've been messing around with python a little bit and have created a program saved as string.py
where I tested out some string functions.
In another program function.py
in the same directory I wrote this code
def say_hi(first = 'John', last = 'Doe'):
"""Say hello."""
print('Hi {} {}!'.format(first, last))
help(say_hi)
which, however, executed the string.py
program. I found out after some testing that renaming string.py
to anything else solves the problem and the function.py
program is executed as intended, but I'd like to understand why the help function executed the other program in the first place.