Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keyword only arguments python

def fn(*, a): # only keyword arguments
    print(a)

# fn(1) # error
fn(a=1) 
 
PREVIOUS NEXT
Tagged: #keyword #arguments #python
ADD COMMENT
Topic
Name
2+9 =