how to create a for loop statement in 1 line python code example Example: making lists with loops in one line python print([i for i in range(10)])