Jul-12-2023, 05:54 PM
Hi,
I'd appreciate if someone can explain me the first function and what's used for since both yield the same results.
TIA.
I'd appreciate if someone can explain me the first function and what's used for since both yield the same results.
TIA.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
@lambda _: _() def func1() - > str : print ( 'func1 was called' ) return 'some value here' def func2(): print ( 'func2 was called' ) return 'some value there' print (func1) print (func2()) |