Introduction to Functions

This lesson will have to do with using functions and recursion to improve readability and efficiency of your code.


Simply put, a function is a segment of code that is isolated from the main code segment. A function is called from a section of code. When the function’s code has been executed, it returns to the calling code.

The general form of a function is:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy