Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: for loop for calendar day selection using selenium python 
Python :: How to set a tkinter window to a constant size 
Python :: BeautifulSoup : Fetched all the links on a webpage how to navigate through them without selenium 
Python :: pygame getting your charecter to jump 
Python :: comprehension 
Python :: find smallest element not present in list python 
Python :: store dataframes 
Python :: pixel accuracy image segmentation python 
Python :: matrix implement 
Python :: pyqt serial plotter 
Python :: Permission error 
Python :: first duplicate 
Python :: Wtforms: How to generate blank value using select fields with dynamic choice values 
Python :: win10 python com ports 
Python :: python 3.9.13 release date 
Python :: patterns and matcher nfa python code 
Python :: ring Search List Item 
Python :: update specific field in index in elastic using python 
Python :: python rational numbers 
Python :: python adx indicator 
Python :: module not found after sucessful install 
Python :: python list of datetimes as type string 
Python :: Find dataframe column values containing a certain string 
Python :: python apply file line 
Python :: pico 8 pset 
Python :: vaibhav=complex(2,5) 
Python :: view does not return httpresponse 
Python :: pyqt highlight all occurrences of selected word qt 
Python :: r Return each result with an index 
Python :: OneToMany 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =