Q:

making lists with loops in one line python

print([i for i in range(10)])
2

New to Communities?

Join the community