Skip to Content
Learn
Functions
Call and Response

After defining a function, it must be called to be implemented. In the previous exercise, spam() in the last line told the program to look for the function called spam and execute the code inside it.

Instructions

1.

We’ve set up a function, square. Call it on the number 10 (by putting 10 between the parentheses of square()) on line 10!

Folder Icon

Take this course for free

Already have an account?