Tips How to Print a Variable and Its Value Using Python f-Strings Rick Donato Jul 24, 2024 1 min read 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=2 z=3'