I want to add an element in an array at a specific position
and how to take input
How to add element at a particular place
You can use insert() function to add an element at a specified location . Insert function takes 2 arguments one for the position and second for the the element you want to insert .
Eg- a.insert(2,7) - this will insert 7 at 2nd position in the list a .
To take an input you use input() function .
Input function always takes a string input so if you want to take an integer input then you can convert it into integer by using - int(input())