SLASSCOM Data Analytics Curriculum

Diploma level curriculum as a guidance to educational institutes.

This project is maintained by SLASSCOM

Home > Introduction to Python > Functions & OOP

Module: Introduction to Python

Topic: Functions & OOP

  1. Lesson: Functions
  2. Lesson: Nested functions
  3. Lesson: Lambda expression
  4. Lesson: OOP with Python


Lesson 1

Functions

Self Learning Duration
30 mins
Lecture Duration
30 mins

Self learning content

Lecture content

Why functions, Arguments. Function as an object (attributes)

Lab and tutorials

None



Lesson 2

Nested functions

Self Learning Duration
30 mins
Lecture Duration
30 mins

Self learning content

Lecture content

Defining a nested function and recursion

Lab and tutorials

None



Lesson 3

Lambda expression

Self Learning Duration
30 mins
Lecture Duration
90 mins

Self learning content

https://www.guru99.com/python-lambda-function.html

Lecture content

Anonymus functions.
Building up a lambda expression using (map, filter, reduce ) to solve a problem.

Lab and tutorials

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.



Lesson 4

OOP with Python

Self Learning Duration
30 mins
Lecture Duration
180 mins

Self learning content

https://www.tutorialspoint.com/python/python_classes_objects.htm

Lecture content

Basic object oriented concepts.
How OOP works with Python.
Init method.

Lab and tutorials

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.