Answers for "read multiple input lines python"

6

multiline input in python

print("Enter the array:\n")   
userInput = input().splitlines()
print(userInput)
Posted by: Guest on August-13-2020
0

multiple lines input python

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)
Posted by: Guest on December-04-2021

Code answers related to "read multiple input lines python"

Python Answers by Framework

Browse Popular Code Answers by Language