so I want to add users input to an empty list using this code
no_of_num=int(input(\'enter the number of numbers you would like to add\\n=\'))#this will store the
@Ram Pandey is right add num instead if i try this, it works
num
i
for i in range(0,no_of_num): num=int(input('enter the number\n=')) list_of_num.append(num) print(sum(list_of_num))