Fazendo listas com loops em uma linha Python

print([i for i in range(10)])
Inquisitive Ibex