0 of 1 lessons complete (0%)

Introduction to python

History of Python

You don’t have access to this lesson

Please register or sign in to access the course content.

You can implement a lambda function without using a variable name. You can also directly pass the argument values into the lambda function right after defining it using parenthesis. This cannot be done using def functions.

(lambda x,y : x*y)(5,7)


x = 5
def foo():
    global x
    x =10
    print("Local:", x)

print("Global:", x)