What does a bare * in def f(a, *, b) mean in Python?
Correct answer
C. Parameters after it must be passed as keywords
C. Parameters after it must be passed as keywords
Parameters after * are keyword-only.
Asked in: Python Interview Functions
https://docs.python.org/3/tutorial/controlflow.html#defining-functionsNot sure why the answer is C? Ask here and get an explanation.