Kahibaro
Discord Login Register

Chapter 9: Functions

As your programs grow, you’ll notice the same kind of code appearing again and again. Functions let you:

You’ve already used built-in functions like print() and input(). In this chapter, you’ll learn how to create your own.

A function is like a small machine:

This idea is used everywhere in Python, from tiny scripts to huge applications.

Views: 21

Comments

Please login to add a comment.

Don't have an account? Register now!