Zen of Python: Difference between revisions

Content deleted Content added
In practice: Remove unnecessary Wiki links and redirect some Wiki links to be more appropriate
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>