Created
February 2, 2020 19:54
-
-
Save y56/4d0202d7562104dd4658cffca1b0827a to your computer and use it in GitHub Desktop.
python format()
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
>>> "You get {product} when you multiply {1} with {0}".format(5.5, 3, product=16.5) | |
'You get 16.5 when you multiply 3 with 5.5' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment