Una línea para bucle python
[thing for thing in list_of_things]
Tremendous Enceladus
[thing for thing in list_of_things]
>>> x = [1, 2, 3, 4, 5]
>>> y = [2*a for a in x if a % 2 == 1]
>>> print(y)
[2, 6, 10]
foo = [x for x in bar if x.occupants > 1]
for i in range(s,t + 1, 3 ):
builder += str(i) + " "