top of page
Search

Lambda Functions in Python

  • Writer: Abhinaw Tripathi
    Abhinaw Tripathi
  • Dec 26, 2017
  • 1 min read

So Lambda Functions are just an anonymous function.they are very simple just saves your space and time.they are useful in case of higher order function.Lets take an example: def double(a): return a*2 Convert to Lambda Function double = lambda a: a*2 


Recent Posts

See All
Generator Function - Yield Python

So Yield is a keyword.first let's take an example. student = [] def read_file(): try: f=open("students.txt","r") for student in...

 
 
 
Opening,Reading and Writing Python

Let's save our data in a file and read from that file again when we re-open our app. So let's take an example: Let's take an example: ...

 
 
 
Nested Functions and Closures

Let's take an example: def get_students(): students=["Abhinaw","Aman"] def get_students_titlecase(): students_titlecase = [] for...

 
 
 

Comments


© 2016 by Abhinav Tripathi

  • Facebook Clean Grey
  • Twitter Clean Grey
bottom of page