python how to take multiple lines of input for the user 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