Domain changed to archive.palanq.win . Feb 14-25 still awaits import.
[10 / 1 / 1]

No.1513928 View ViewReplyOriginalReport
In python, what is the difference between the following two ways of creating a list (or any other variable):
>1
y = [1,2,3,4]
a = [x for x in y if x >2]
>2
x = []
y = [1,2,3,4]
for x in y:
if x > 2:
a.append(x)
Is it merely conciseness and applicability for list extension?