I was taking a python training from udemy and suddenly found out that in python, we can assign a function to a variable and as I was practising, I found out that there are two ways it can be done. For example, suppose we are defining a function hello() as bellow:
def hello(name="Neel"):
return "hello "+name
Now consider the two assignment:
greet = hello
and
greet = hello()
So I want to know what are the differences between them and how's the picture behind the scene?