9951 explained code solutions for 126 technologies


pythonHow to add an element to the list


list = [1, 2]
list.append(5)ctrl + c
list

example list

append

will append specified element to the end of specified list

5

element to add to our list