python add to start of list

var = 7
array = [1,2,3,4,5,6]
array.insert(0,var)
print(array)
# [7, 1, 2, 3, 4, 5, 6]

Here is what the above code is Doing:
1. We create a variable called var and set it equal to 7.
2. We create an array called array and set it equal to [1,2,3,4,5,6].
3. We use the insert() method to insert the value of var (7) at the beginning of the array.
4. We print the new array.