What does the / in a function signature def f(a, /, b) mean in Python?
Correct answer
C. Parameters before it are positional-only
6 views
C. Parameters before it are positional-only
6 views
PEP 570 uses / to mark positional-only parameters (Python 3.8+).
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.