Here is a roundabout but fun way to solve:
You can generate a list, then a function that takes the list and prints on each line, then call the function.
mylist = [bin(x) for x in range(2,6)]
for items in list:
Pardon the formatting; the function required proper indentation- one additional indent level for each line.