python 3 lists code example
Example 1: insert python3
a = [1,2,3,4,5]
#a.insert(index_to_insert_at, num_to_insert)
a.insert(0, -1)
# a is now: [-1,1,2,3,4,5]
Example 2: list in python 3
list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5 ];
list3 = ["a", "b", "c", "d"];