How To Define Function Parameters As Positional, Keyword, or Both in Python

Start using the new / and * symbols in your function definitions

Jonathan Hsu
Better Programming
Published in
3 min readNov 12, 2019

--

Photo by Austin Distel on Unsplash

As of Python 3.8, it is now possible to define function parameters as positional only, keyword only, or keyword optional.

Let’s talk through what functions are, the types of function parameters, and…

--

--