Guide To Coding

Parameters store information in functions. They are used to transfer info/data from the function to a caller. Also, a function isn't limited to just one parameter. If you want to use multiple parameters, just put a comma in between them. A parameter can be anything you want to store in a function, such as numbers, colors, and data sets. Sometimes, you can use an argument in place of a parameter. An argument is a type of parameter that passes values to functions.
It is essential to learn and understand parameters because they help give more flexibility for functions. You can change similar functions using parameters, which helps shorten codes and also makes our codes more organized and flexible. For example, if you wanted to draw a square, you could use parameters to specify what size each side should be, without making a separate function for each different sized square. Although they are very useful and convenient, you don't necessarily need to know them to create a program.
Click Here To Go To Chapter 6