Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Basics!
You have completed Python Basics!
Preview
Let's explore how to create our own functions
Learn more
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
And they've proven to be super handy.
0:00
You know functions like print and
input, we also used len.
0:00
Functions are great,
they provide a way for
0:04
you to group multiple statements
together to use later.
0:06
They help you avoid duplicating your code.
0:09
Now if you ever find yourself writing
the same exact code more than once,
0:12
it's a symptom that
something is likely wrong.
0:15
Now we refer to these symptoms
as code smell, like hmm,
0:18
something about this code smells.
0:22
Here, let me help you
write some smelly code and
0:24
then we'll clean it up with
the power of functions.
0:26
Getting someone's attention
these days is so hard.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up