I'm not sure but I think you can use append
to append thing on list.
Code:
n=int(input("enter amount of values : "))
a=[]
for i in range (n):
a.append(int(input("number: ")))
print(a)
Output:
enter amount of values : 5
number: 3
number: 6
number: 2
number: 10
number: 6
[3, 6, 2, 10, 6]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…