Fun With Functions (Define and Call Functions)

This is a little remake of the Fun With Numbers program, only that in this case we will define and call functions to reuse chunks of code.

The preview of the code is this:

This looks a little weird, there are lines missing and what about the lines before the prints?Well the answer is that they have been defined as functions, so you can retract and collapse them so you can have a better look at your code. 

That’s what functions are for you can use chunks of code several times and save you coding and space. 

CC BY 4.0 Fun With Functions (Define and Call Functions) by Nuel is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.