python user input multiple lines code example
Example 1: multiline input in python
print("Enter the array:\n")
userInput = input().splitlines()
print(userInput)
Example 2: taking multiple input in python
only_str = list(input().split()) #only str
define_type = list(map(int, input().split())) #int, float, str