Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python use variable name as string

>>> foo = dict()
>>> f'{foo=}'.split('=')[0]
'foo'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #variable #string
ADD COMMENT
Topic
Name
6+9 =