Variable scopes
Aug 10,97A variable scope is simply the part of a program where a variable is accessible. It depends on the place …
Read MoreFlexible number of arguments
Aug 10,97It is possible to create a function that will accept a flexible amount of arguments. This is useful in scenario …
Read MoreDefault values for parameters
Aug 10,97It is possible to define a default value for function parameters. This is useful in scenarios when a function is …
Read MoreKeyword arguments in functions
Aug 10,97Keyword arguments are name-value pairs specified in the function call. With keyword arguments, you don’t have to worry about the …
Read MorePositional arguments
Aug 10,97A function definition can contain more than a single parameter. The easiest way to pass multiple arguments to a function …
Read MoreReturn statement
Aug 10,97Often times you will want to write a function that process some data and then returns a value. For example, …
Read More