11.1 Functions Intro

Functions Intro

So far in Python, we’ve been writing programs that can only be used once every time we run it. What if we want to generalize some block of code and use it repeatedly in slightly different ways? That’s where functions come in. We have seen functions that were built into Python already. This includes, if you remember, input(), print(), etc. Let’s make our own function!
Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.