up:: [[Python MOC]] # Force a Python Function to Only Accept Keyword Arguments In Python 3, you can force a function to only accept keyword arguments (even without default values) by making the first parameter an asterisk `*`. ## Example ```python def myfunc(*, a, b, c): ... ``` ## Source [Source](https://www.vegardstikbakke.com/python-keyword-only/)