, поэтому я хочу добавить пользовательский ввод в пустой список, используя этот код
no_of_num=int(input('enter the number of numbers you would like to add\n='))#this will store the number of numbers to be added
list_of_num=[]#this list will store the number to be added
for i in range(0,no_of_num):#we will ask them for the input
num=int(input('enter the number\n='))
list_of_num.append(num)#this will keep adding the numbers to the list
result=sum_of_num(num)
, но когда я пытаюсь запустить этот код, он просто добавляет последний номер, который пользователь вводит в список