Answered by : curious-coyote-32xypsahmevf
print("Enter the array:\n")
userInput = input().splitlines()
print(userInput)
Source : https://stackoverflow.com/questions/10426699/store-multi-line-input-into-a-string-python/10426764 | Last Update : Thu, 20 Aug 20
Answered by : curious-coyote-32xypsahmevf
import sys
userInput = sys.stdin.readlines()
Source : https://stackoverflow.com/questions/10426699/store-multi-line-input-into-a-string-python/10426764 | Last Update : Thu, 20 Aug 20
Answered by : kirik-altekar
lines = []
while True: line = input() if line: lines.append(line) else: break
text = '\n'.join(lines)
Source : https://stackoverflow.com/questions/30239092/how-to-get-multiline-input-from-user | Last Update : Wed, 10 Feb 21
Answered by : kiril-klein
print("Enter/Paste your content. Ctrl-D or Ctrl-Z ( windows ) to save it.")
contents = []
while True: try: line = input() except EOFError: break contents.append(line)
Source : https://stackoverflow.com/questions/30239092/how-to-get-multiline-input-from-user | Last Update : Sat, 11 Dec 21
Answered by : christabel-justin
x, y = input().split()
Source : https://www.geeksforgeeks.org/input-multiple-values-user-one-line-python/ | Last Update : Mon, 21 Mar 22