Module 2#

An important part of any programming language is controlling what you do with data. In this module, we explore the basics of control flow and functions.

Control Flow#

Conditional Execution#

Control flow are basically statements that help us carry out different operations on data based on some conditions that they may or may not satisfy.

Loops (Repetitive Execution)#

Loops help us automate a single operation or group of operations on multiple points of data in a sequence. Combine loops with conditional execution and we can carry out different operations on a large amount of data automatically based on some condition.

Functions#

Functions are abstractions that help us run the same code over and over again with different parameters or on different data without having to write the explicit code repeatedly. It helps keep code clean and reduces the amount of code that we have to write.