I know the easiest way to take input in python is with the function input()
.
However, what if I have to take several numbers on separate lines at once and add them up.
Example input:
2
3
1
4
How can I read this input into a list?
I am a beginner in python so please any advice is appreciated