Skip to content

Instantly share code, notes, and snippets.

@leveled
Created February 22, 2021 00:18
Show Gist options
  • Save leveled/c8759458d0a31a3df251bcb634d08876 to your computer and use it in GitHub Desktop.
Save leveled/c8759458d0a31a3df251bcb634d08876 to your computer and use it in GitHub Desktop.
Format strings cheatsheet for python
#Format with positional arguments
print("{0} love {1}!!".format("GeeksforGeeks", "Geeks"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment