summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
authorPhilippe <pvlerick@gmail.com>2014-08-27 17:55:21 +0200
committerPhilippe <pvlerick@gmail.com>2014-08-27 17:55:21 +0200
commitb8ba98c86c78dd4d1a50831c86448ea2c85dcd13 (patch)
treeb418d4c278bf06a1e70251c47f98e924509ef377 /python3.html.markdown
parentbfa04112e8e788bea9dc53cdef1659961c7882cb (diff)
parent013112b9b338d5f05d33e6d1d85e39e7f061285d (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index b494dc1e..f6babaff 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -93,7 +93,9 @@ not False # => True
"{} can be {}".format("strings", "interpolated")
# You can repeat the formatting arguments to save some typing.
-"{0} be nimble, {0} be quick, {0} jump over the {1}".format("Jack", "candle stick") #=> "Jack be nimble, Jack be quick, Jack jump over the candle stick"
+"{0} be nimble, {0} be quick, {0} jump over the {1}".format("Jack", "candle stick")
+#=> "Jack be nimble, Jack be quick, Jack jump over the candle stick"
+
# You can use keywords if you don't want to count.
"{name} wants to eat {food}".format(name="Bob", food="lasagna") #=> "Bob wants to eat lasagna"