Positional vs keyword function arguments in Python

Опубликовано: 20 Октябрь 2024
на канале: Python Morsels
671
22

When you're working with named arguments (a.k.a. keyword arguments) it's the argument name that matters. When you're working with positional arguments, it's the position matters (but not the name).

Read an article version of this video at https://pym.dev/positional-vs-keyword...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Positional arguments
00:34 Keyword arguments (a.k.a. named arguments)
01:03 The order of keyword arguments doesn't matter
01:40 Using keyword arguments instead of positional arguments
02:41 Python has both positional and named arguments