Refrain from using inline suites.
This commit is contained in:
parent
91d2a3fb0e
commit
70543acfa1
|
@ -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::
|
||||
|
||||
|
|
Loading…
Reference in New Issue