In this video course, you learned about two of the most essential concepts in programming: functions and loops. First, you learned how to define your own custom functions. You saw that functions are made up of two parts:
- The function signature, which starts with the
def
keyword and includes the name of the function and the function’s parameters - The function body, which contains the code that runs whenever the function is called
Functions help you avoid repeating similar code throughout your program by creating reusable components. This helps make your code easier to read and maintain.
Then you learned about Python’s two kinds of loops:
while
loops repeat some code while a given condition remains true.for
loops repeat some code for each element in a set of objects.
For more information on the concepts covered in this course, check out the following tutorials:
- Defining Your Own Python Function
- Documenting Python Code: A Complete Guide
- The Python return Statement: Usage and Best Practices
- Python Scope & the LEGB Rule: Resolving Names in Your Code
- Using Python Optional Arguments When Defining Functions
- Python Inner Functions: What Are They Good For?
- Python “for” Loops (Definite Iteration)
- Python “while” Loops (Indefinite Iteration)
Or you can explore the following video courses:
- Defining and Calling Python Functions
- Documenting Python Code: A Complete Guide
- Using the Python return Statement Effectively
- Defining Python Functions With Optional Arguments
- Python Inner Functions
- Mastering While Loops
- For Loops in Python (Definite Iteration)
To continue your Python learning journey, check out the other Python Basics courses. You might also consider getting yourself a copy of Python Basics: A Practical Introduction to Python 3.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
alex opoku on Sept. 9, 2023
This lesson is great I enjoyed it.
I am having problems with the certificates I receive for the courses I have successfully completed. I am unable to read all the text on the certificates.
I want to find out if there would be another certificate upon completing all the modules in a given course.