3 ms·
Can someone explain to me why dictionaries being ordered or not matter here? It does not! The integer key represents the argument you want to assign the variab
by TrianguloY 3y ago
Can someone explain to me why dictionaries being ordered or not matter here? It does not!
The integer key represents the argument you want to assign the variable to.
And what if you specify an argument with an integer key but also with the corresponding string key? Guess what, python allows this (for example f(1, *[2], **{"v":3}), and it throws a TypeError: sum() got multiple values for argument 'a'