Content deleted Content added
Erictleung (talk | contribs) →In practice: Remove unnecessary Wiki links and redirect some Wiki links to be more appropriate |
Bsmillstein (talk | contribs) m →Being Pythonic: added list comprehension example to the being pythonic section. Tag: Reverted |
||
Line 66:
for piece in food:
print(piece)
</syntaxhighlight>
And the cleanest, most Pythonic method would be a list comprehension:
<syntaxhighlight lang="python">
[print(piece) for piece in food]
</syntaxhighlight>
</blockquote>
|