Functions


A block of code that runs when it is called.

Can be called multiple times to be ran multiple times.

Can receive and return data.

Has its own local variables.


Defined by using the def keyword, the function name and then closed brackets to hold arguments.

Leave a comment

Log in with itch.io to leave a comment.