lines = []while True: buffer = input() if buffer: lines.append(buffer) else: breakprint(lines)
"aaa" "bbb" "ccc" "ccc"
['"aaa" "bbb" "ccc"', '"ccc"']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!