Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #lines #input #python
ADD COMMENT
Topic
Name
9+9 =