0
How can we add numbers to list?
2 Antworten
+ 3
You can use the .append list method to add numbers to the end of your list. You can also use .insert(indexnumber, item) list method to add a number to a specified index number.
0
u can add items inlist as follows also
list = [1,2,3]
list +=[4]
print(list[3])
output will be 4