Learn Before
Relation
Optional Parameters
Functions in Python can have optional parameters. Functions with optional parameters can be called with or without passing an argument through the optional parameters. If no argument is provided, the default value will be passed through the parameter. The default value must be defined with an = sign in the function header. For example, in the function rotate(x, y = 3), y is an optional parameter with a default value of 3.
0
1
Updated 2021-02-01
Tags
Python Programming Language
Data Science