How to Print a Variable and Its Value Using Python f-Strings
Python Tip: Append the variable with = to also show the variable name when using Python f-string's.
Heres an example 👇
x, y, z = 1, 2, 3
f"{x} {y} {z}"
# Output:
# '1 2 3'
f"{x=} {y=} {z=}"
# Output:
# 'x=1 y=