In python I know we can define function in below 2 ways,
def show():
print("hi")
and using lambda
show=lambda x: print(x)
show("hi")
Is there any performance advantage ever notice in one over the other.? especially in programs that involve large computations.
I tried timed programs and comparing its execution durations. but did not notice any difference. I need to know if this is the case, especially in industry grade applications.