Skip to content

Instantly share code, notes, and snippets.

@NirantK
Created April 16, 2018 04:55
Show Gist options
  • Save NirantK/345e8d846bbc13a18caec0e40b47fde3 to your computer and use it in GitHub Desktop.
Save NirantK/345e8d846bbc13a18caec0e40b47fde3 to your computer and use it in GitHub Desktop.
# inline variables, similar to LaTeX
name = "Fred"
print(f"He said his name is {name}.")
# 'He said his name is Fred.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment