# PRESS ENTER WITHOUT WRITING TO STOP inputs = [] while True: inp = input("Insert input: ") if inp == "": break inputs.append(inp) print (inputs)
from sys import stdin lines = stdin.read().splitlines() print(lines)