Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print value and variable name

#!/usr/bin/env python3
foo = 1
bar = 2
print(f"{foo=} {bar=}")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #variable
ADD COMMENT
Topic
Name
6+5 =