DEV Community

mpuchyr
mpuchyr

Posted on

Keyword Parameters

Named parameters specifying values within a method.

Method with regular parameters:
do_something(a, b)

Method with named parameters:
do_something(first_thing:, second_thing:)

In the example with the keyword parameters, the user has a clearer idea of what the arguments sent to the method are used for.

Top comments (0)