This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Answer the following questions to see what you've learned.
What is the purpose of functions?
To make it harder for others to read your code
To make your code look more sophisticated
To make your code cleaner and less redundant
What are two ways to change variables not made in functions?
To make them global or pass them in as parameters.
To create variables outside the function or pass them in as parameters.
What is the proper code for an if-statement?
if
if(condition): do something
if(condition):
do something
if(condition); do something
if(condition);
You must answer all questions before checking your work.
Continue
Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.
Was this page helpful?