You are given a set of integers separated by lines as input,for example....
7
2
4
5
8
9
but you want to get all these converted to a lst for your program, like [7,2,4,5,8,9] after several attempts, e.g.
nums = int (input())
lst = []
for i in nums:
lst.append(int (i))
print (list)
Unfortunately, this outputs only the first element of the input [7]
Even tried to use a range, no difference
Please, what i am getting wrong?