which is a pythonic and style guide compliant way of operation in case of the following three scenarios.
sq, div2 = [], []
# 1 Classic for loop
for i in range(10):
sq.append(i**2)
div2.append(i/2)
# 2 ListComp
[(sq.append(i**2), div2.append(i/2)) for i in range(10)]
# 3 single line for loop
for i in range(10):(sq.append(i**2), div2.append(i/2))
# this is also there but will have multiple loops
sq, div2 = [[i**2 for i in range(10)], [i/2 for i in range(10)]]
or any better way whereby a single for loop generates multiple lists and assign vars.