Created
April 14, 2018 17:54
-
-
Save y1n0/3c3a8bd8c4296a911ca3d9eb2d3f4ead to your computer and use it in GitHub Desktop.
a method to format strings in an f-strings-like way.
This file contains hidden or 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
| name = "Begovich" | |
| template = "Hello, {name}" | |
| print(template.format(**globals())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment