Store multi-line input into a String (Python)
python
Solution
You can use `readlines()` method of file objects:
import sys
userInput = sys.stdin.readlines()
Problem
Input: ``` 359716482 867345912 413928675 398574126 546281739 172639548 984163257 621857394 735492861 ``` my code : ``` print("Enter the array:\n") userInput = input().splitlines() print(userInput) ``` my problem here is that, `userInput` only takes in the first line value but it doesn't seem to take in values after the first line?