How to add element at first position in array python


Topic: How to add element at first position in array python

Solution

x = [1,3,4]
a = 2
x.insert(1,a)



List all Python Programs