For a one line you can use combination of map()
and lambda()
. Look here if not familiar to this concepts.
But be careful, you must be with python 3.x so that print is a function and can be used inside the lambda expression.
>>> from __future__ import print_function
>>> l1 = [2,3,4,5]
>>> l2 = [6,7,3,8]
>>> list(map(lambda X: print(X[0],X[1]), list(zip(l1,l2))))
output
2 6
3 7
4 3
5 8