Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70543ac

Browse files
committed
Refrain from using inline suites.
1 parent 91d2a3f commit 70543ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/tutorial/controlflow.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,12 @@ function like this::
458458
def cheeseshop(kind, *arguments, **keywords):
459459
print("-- Do you have any", kind, "?")
460460
print("-- I'm sorry, we're all out of", kind)
461-
for arg in arguments: print(arg)
461+
for arg in arguments:
462+
print(arg)
462463
print("-" * 40)
463464
keys = sorted(keywords.keys())
464-
for kw in keys: print(kw, ":", keywords[kw])
465+
for kw in keys:
466+
print(kw, ":", keywords[kw])
465467

466468
It could be called like this::
467469

0 commit comments

Comments
 (0)