My current code reads user input until line-break. But I am trying to change that to a format, where the user can write input until strg+d to end his input.
I curren
You could also do the following:
acc = [] out = '' while True: try: acc.append(raw_input('> ')) # Or whatever prompt you prefer to use. except EOFError: out = '\n'.join(acc) break