how to add element at specific index position in python code example
Example: python append in specific position
# --> list.insert(position, element) <--
# List of string
list1 = ['Hi' , 'hello', 'at', 'this', 'there', 'from']
# Add an element at 3rd position in the list
list1.insert(3, 'why')
#-> ['Hi', 'hello', 'at', 'why', 'this', 'there', 'from']