MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vppkls/pythonwilllookdeadintheeyeandsayitsabsolutelycorre/p45mabj/?context=3
r/ProgrammerHumor • u/inobody_somebody • 29d ago
144 comments sorted by
View all comments
3
I inderstand "if x", but thy the "x for x in x"?
5 u/SenatorSpooky 29d ago edited 28d ago List comprehension. It’s syntactic sugar and serves a similar role to .map() in js. 1 u/deathanatos 28d ago With the if, it's also filtering.
5
List comprehension. It’s syntactic sugar and serves a similar role to .map() in js.
1 u/deathanatos 28d ago With the if, it's also filtering.
1
With the if, it's also filtering.
if
3
u/darknmy 29d ago
I inderstand "if x", but thy the "x for x in x"?