Welcome to the third session on 'Control Structures and Functions'.
Control structures are the essence of programming; they help computers do what they do best: automate repetitive tasks intelligently. The most common control structures are if-else statements, for and while loops, and list and dictionary comprehensions. This session will cover all these concepts.
Another crucial thing you will learn in this session is how to write your own functions. Almost every powerful program, be it a web app or a machine learning algorithm, is basically a set of functions written to perform specific tasks.
In this session, you will learn
Control structures
If-elif-else
For loop
While loop
List comprehensions
Dictionary comprehensions
Functions
Map
Filter
Reduce
You can download the Python notebooks used in the lecture from the link below. It is recommended that you keep executing the commands on your computer at pace with the lecture. You can also parallelly try experimenting with other commands that you may have in mind.
Subject Matter Expert
EX- Senior Software Engineer, Capgemini
Vaidehi is a postgraduate in Computer Science and Engineering and has more than six years of rich experience in the areas of software development and maintenance in the IT field. Her main expertise lies in Python, Tableau, Django, Java and J2EE.