0

How can we add numbers to list?

7th Oct 2016, 5:16 AM
Mohan
2 Answers
+ 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.
10th Oct 2016, 2:06 PM
Ahnaf An Nafee
Ahnaf An Nafee - avatar
0
u can add items inlist as follows also list = [1,2,3] list +=[4] print(list[3]) output will be 4
25th Oct 2016, 5:17 PM
Onkar Ashok Gumate
Onkar Ashok Gumate - avatar