Created
April 26, 2023 14:24
-
-
Save bruno-uy/7ad8c815a76e7d47565c4ef9acef5a7a to your computer and use it in GitHub Desktop.
Print variable name and value (Python shortest version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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