lst = [1, 2, 3]
lst.append(5)
my_input = ['Engineering', 'Medical']
my_input.append('Science')
print(my_input)
fruits=['Banana', 'Apple']
fruits.append('Orange')
x = []
print(x)
x.append("first")
print(x)
lst = ["f", "o", "o", "b", "a","r"]
lst.append("b")
print(lst) # ["f", "o", "o", "b", "a", "r", "b"]
a=[1,2,3]
b=[2,3,4]
a.append(b)
my_list=[0,1,2,3]
new_element=700
new_list=[4,5,6]
#if you want add at the end of list:
my_list.append(new_element)
#if you want add a list merge two lists:
my_list.extend(new_list)
#if you want to add element in a specific index
my_list.insert(index , new_element)
my_list = []