Skip to content

Instantly share code, notes, and snippets.

@bruno-uy
Created April 26, 2023 14:24
Show Gist options
  • Save bruno-uy/7ad8c815a76e7d47565c4ef9acef5a7a to your computer and use it in GitHub Desktop.
Save bruno-uy/7ad8c815a76e7d47565c4ef9acef5a7a to your computer and use it in GitHub Desktop.
Print variable name and value (Python shortest version)
variable = "This is the value"
print(f"{variable=}")
# >>> variable='This is the value'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment