Многослойный ввод в 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)
# taking multiple inputs at a time separated by comma
x = [int(x) for x in input("Enter multiple value: ").split(",")]
print("Number of list is: ", x)