diff --git a/utils/input_utils copy.py b/utils/input_utils copy.py new file mode 100644 index 0000000..8167d0d --- /dev/null +++ b/utils/input_utils copy.py @@ -0,0 +1,11 @@ +def get_multiple_line_input(prompt: str = "Enter/Paste your content. Ctrl-D or Ctrl-Z ( windows ) to save it."): + print(prompt) + contents = [] + while True: + try: + line = input() + except EOFError: + break + contents.append(line) + user_input = '\n'.join(contents) + return user_input