Answers for "can you append to list in python"

2

list methods append in python

l1 = [1, 8, 7, 2, 21, 15]
l1.append(45) # adds 45 at the end of the list.

#it will append number at the end of list which number you will write.
Posted by: Guest on January-12-2022
0

how to append to a list in python

numbers = [5, 10, 15]
numbers.append(20)
Posted by: Guest on December-01-2021

Code answers related to "can you append to list in python"

Python Answers by Framework

Browse Popular Code Answers by Language