Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

positional only arguments python

def fn(a,/): # only positional arguments
    print(a)

fn(1)
# fn(a=1) --> Error
 
PREVIOUS NEXT
Tagged: #positional #arguments #python
ADD COMMENT
Topic
Name
1+1 =