summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/tutorial/controlflow.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index bd88ad6..e33a596 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -458,10 +458,12 @@ function like this::
def cheeseshop(kind, *arguments, **keywords):
print("-- Do you have any", kind, "?")
print("-- I'm sorry, we're all out of", kind)
- for arg in arguments: print(arg)
+ for arg in arguments:
+ print(arg)
print("-" * 40)
keys = sorted(keywords.keys())
- for kw in keys: print(kw, ":", keywords[kw])
+ for kw in keys:
+ print(kw, ":", keywords[kw])
It could be called like this::