Most arguments are identified by their position in the function call.
random.randint(1, 10)
# random.randint(10, 1) causes an error.
# Order of arguments matters
Keyword arguments are identified by the keyword put before them in the function call. Keyword arguments are often optional parameters.
See:
Example:
print('Hello', end='')
print('World')
Output:
HelloWorld
Example:
>>> print('cats', 'dogs', 'mice')
cats dogs mice
>>> print('cats', 'dogs', 'mice', sep=',')
cats,dogs,mice
Note how the print() function automatically separates strings with a ' ‘, but
you can specify the field separator with sep=
.