gistlib
other python categories
lambda-functions code snippets in python
can i add the docs for a lambda function on same line? in python
give this as a list comprehension or a generic line: `square = lambda n: 2**(n-1) if n>=1 or n<=64 else valueerror("between 1 and 64")` in python
what's wrong with `square = lambda n: 2**(n-1) if n>=1 or n<=64 else print("square must be between 1 and 64")` in python
where to place doc strings under a lambda function? in python
gistlib
by LogSnag