return x, y

def f3(aRange):
    x, y = zip(*((2 * i, 3 * i) for i in aRange))
return x, y

def f4(aRange):
    x = []
y = []
for i in aRange:
    x.append(i * 2)
y.append(i * 3)
return x, y
Two assignments in single python list comprehension