def my_func(name):
name = input('What is your name?: ')
print(name)
my_func(name)
>>> def my_func():
name = input('What is your name?: ')
print(name)
>>> my_func()
What is your name?: Alex
Alex
>>> my_func()
What is your name?: Bob
Bob
>>> def my_func(name):
print(name)
>>> my_func('Alex')
Alex
>>> my_func('Bob')
Bob
def get_name():
name = input('What is your name?: ')
print(name)
get_name()