Home > Introduction to Python > Functions & OOP
Module: Introduction to Python
- Lesson: Functions
- Lesson: Nested functions
- Lesson: Lambda expression
- Lesson: OOP with Python
Functions
- Self Learning Duration
- 30 mins
- Lecture Duration
- 30 mins
Why functions, Arguments. Function as an object (attributes)
None
Nested functions
- Self Learning Duration
- 30 mins
- Lecture Duration
- 30 mins
Defining a nested function and recursion
None
Lambda expression
- Self Learning Duration
- 30 mins
- Lecture Duration
- 90 mins
https://www.guru99.com/python-lambda-function.html
Anonymus functions.
Building up a lambda expression using (map, filter, reduce ) to solve a problem.
Create few lists with some numerical data, use only lambda functions such as map, filter, reduce to find minimum, maximum, average and print all values above X.
OOP with Python
- Self Learning Duration
- 30 mins
- Lecture Duration
- 180 mins
https://www.tutorialspoint.com/python/python_classes_objects.htm
Basic object oriented concepts.
How OOP works with Python.
Init method.
Create a class call shape as the super class which will have properties such as colours. Inherit from it to create circle and square. Have functions such as calculate area.