Learn Python like a Professional! Take You from 0 to Hero
In this Python lecture, we will learn about the Lambda Expression.
" Lambda expression is a concise version of a function. It's also called an anonymous function".
" Lambda expression is a concise version of a function. It's also called an anonymous function".
Let's look at the Boolean examples-
square_function1 = lambda num : num**2
square_function1(5)
sum_function = lambda a,b : a+b
sum_function(1,2)
first = lambda s:s[0]first('hello')
rev = lambda s : s[::-1]rev('hello')
>>'olleh'
In the next Blog, we will discuss function Scope
https://sngurukuls247.blogspot.com/2018/10/python-ninja-bootcamp-24-scope-local.html
......................................................................................................................................
Instagram-
https://www.instagram.com/python.india/
View the Jupyter Notebook for this lecture
Download the Jupyter Notebook for this lecture
https://sngurukuls247.blogspot.com/2018/10/python-ninja-bootcamp-24-scope-local.html
......................................................................................................................................
Follow the link below to access Free Python Lectures-
https://www.youtube.com/channel/UCENc9qI7_r8KMf6-_1R1xnwInstagram-
https://www.instagram.com/python.india/
View the Jupyter Notebook for this lecture
Feel free contact me on-
Email - sn.gurukul24.7uk@gmail.com
No comments:
Post a Comment