Skip to content

Instantly share code, notes, and snippets.

@y1n0
Created April 14, 2018 17:54
Show Gist options
  • Select an option

  • Save y1n0/3c3a8bd8c4296a911ca3d9eb2d3f4ead to your computer and use it in GitHub Desktop.

Select an option

Save y1n0/3c3a8bd8c4296a911ca3d9eb2d3f4ead to your computer and use it in GitHub Desktop.
a method to format strings in an f-strings-like way.
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