inline for loop ptyno code example
Example 1: one-line for loop python
[thing for thing in list_of_things]
Example 2: making lists with loops in one line python
print([i for i in range(10)])
[thing for thing in list_of_things]
print([i for i in range(10)])