Answers for "how to put multiline lines of input in python"

5

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 "how to put multiline lines of input in python"

Python Answers by Framework

Browse Popular Code Answers by Language