Entrada multilínea en Python
print("Enter the array:\n")
userInput = input().splitlines()
print(userInput)
Curious Coyote
print("Enter the array:\n")
userInput = input().splitlines()
print(userInput)
#two input in one line python
X, N = [int(x) for x in input().split()]
x, y = input("Enter a two value: ").split()
print("Number of boys: ", x)
print("Number of girls: ", y)
print()
import sys
userInput = sys.stdin.readlines()
lines = []
while True:
line = input()
if line:
lines.append(line)
else:
break
text = '\n'.join(lines)
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)