What is optional parameter in Python?

A Python optional argument is an argument with a default value . You can specify a default value for an argument using the assignment operator. There is no need to specify a value for an optional argument when you call a function.

Sizin İçin Seçtik  How does C# pass parameters by default?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is optional parameter in Python?

A Python optional argument is an argument with a default value . You can specify a default value for an argument using the assignment operator. There is no need to specify a value for an optional argument when you call a function.

Sizin İçin Seçtik  Is C++ is easy to learn?

Leave a Reply

Your email address will not be published. Required fields are marked *