Introduction to Functions

Introduction to functions.

We'll cover the following

Background

In programming, you often need to carry out a specific task multiple times within a program. Loops help us execute the same set of instructions up to a certain number of times. However, sometimes you need to use the same set of instructions in different parts of the program. It is a tedious task to rewrite the same instructions. Let’s look at following code:

Get hands-on with 1200+ tech skills courses.