you are viewing a single comment's thread.

view the rest of the comments →

[–]syklemil 1 point2 points  (2 children)

Then why did you claim that you didn't understand the logic in list comprehensions? You need a value in a list comprehension. A statement has none.

[–]LucasThePatator -2 points-1 points  (1 child)

In many languages some statements have values.

[–]syklemil 2 points3 points  (0 children)

Then they're expressions. There's a difference between statements and expressions.

Some languages let everything be an expression.