I finally understood lambdas! or so I thought
why does this not work:
Example 1:
for x in range(18, 101):
print("Man's age: ", x, "Women's age: ", lambda x:x//2+9(x))
yet this does:
Example 2:
for x in range(18, 101):
print("Man's age: ", x, "Women's age: ", (lambda x:x//2+9)(x))
does this mean putting a lambda on a parenthesis is the equivalent of calling it? and putting another open/close parenthesis next to it means it is it's arguments?
(x)calls it andxis the parameter. In the first case without parameter, how would python know you didn't mean to call9as a function?9(x)?