Optional function parameters in Python

Optional parameters of functions in Python have default value. This value is specified by equal sign after the variable.

For example:

def example(abc=123)

If a value of abc is not specified when this function is called, it will take default value.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator