Part 7: Working with Function :

Part 7: Working with Function :

This is the continuation of series of blog post on getting started to data science using python (part 1,part 2,part 3,part 4,part 5,part 6) . So today will explore the building blocks of python with special emphasis on function :

A function is a block of code which runs when it is called.
You can pass data, known as parameters, into a function.
A function can return data as a result.
Custom function is created with def() :

Return value :To let a function return a value, use the return statement:

Uses of Lamdafunction :

Lamda is a very useful function in python in which the function can take any number of argument but can only have one expression

Lamda function can be very useful if worked with anonyms within a function

Instructor lead Online training in Datascience join our watsapp group

Upgrade your skills join our community

Leave a Reply

Close Menu