Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

parameter name in string

def func(age):
  print(age)

p_name = 'age'
p_value = 33

p_dict = {p_name: p_value}

func(**p_dict)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parameter #string
ADD COMMENT
Topic
Name
6+9 =