fork download
  1. lines = []
  2. while True:
  3. buffer = input()
  4. if buffer:
  5. lines.append(buffer)
  6. else:
  7. break
  8. print(lines)
Success #stdin #stdout 0.02s 8736KB
stdin
"aaa" "bbb" "ccc"
"ccc"

stdout
['"aaa" "bbb" "ccc"', '"ccc"']