Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Function basics
2. Introduction to functions
Summary

Instruction

Okay, let's recall what functions are. Functions are blocks of code that have their own names and can take arguments. When you use

print('Hello World!')
'Hello World!' is an argument – after all, print() needs to know what to show in the output.

Functions are an important concept in programming. They are reusable – you only need to provide the code once, and you can then use it anywhere else. Programs that use functions are organized, easier to understand, and easier to develop.

Exercise

Click Next exercise to continue.