It appears Python is a greedy taker of input lines?
Very simple Python3 script: testinput.py
for i in range(5): x = input() print(f\'{i}. {x}\')