append()` method to add an element to the end of an array :my_array = [1, 2, 3, 4, 5]
my_array.append(6)
print(my_array)[1, 2, 3, 4, 5, 6]insert()` method to add an element at a specified index. Here's an example:my_array = [1, 2, 3, 4, 5]
my_array.insert(2, 'new_element')
print(my_array)[1, 2, 'new_element', 3, 4, 5]new_element'` is inserted at index `2` (i.e., between the second and third elements) of the array.