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 Functions, Packing, and Unpacking!
You have completed Functions, Packing, and Unpacking!
Preview
Now that you've learned to create functions, learn to execute them by calling them.
This video doesn't have any notes.
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
If the interpreter encounters a function
call, it will jump to that function,
0:00
execute all the code inside of it, and
then go back to its previous place.
0:03
This means that you can execute
the code inside a function
0:08
as many times as you want without having
to rewrite all that code or copy and
0:10
paste a bunch of code
into the correct place.
0:14
Instead, all you have to do is call
the function anytime you want to
0:17
use the code instead of it.
0:20
The syntax for
0:22
calling a function is the function’s name
followed by a set of parens, that’s it.
0:22
Let’s pick up where we left
off in the previous video.
0:28
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