python_utils/utils/input_utils copy.py
M. A. Reza 136be5f05f update
2025-12-02 13:25:32 +03:30

12 lines
337 B
Python

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