Functions

Lambdas

# Takes one input "x"
double = lambda x: x * 2
# Call the function
print(double(5))  # Output: 10

Last updated