Answers for "add a element in list python"

1

add a list in python

list_of_names=["Bill", "John", "Susan", "Bob", "Emma","Katherine"]
new_name="James"
list_of_names.append(new_name)
# The list is now ["Bill", "John", "Susan", "Bob", "Emma","Katherine", "James"]
Posted by: Guest on April-19-2021
0

how to add to a list python

a_list = [1,2,3]
a_list.append(4)
Posted by: Guest on September-19-2020

Code answers related to "add a element in list python"

Python Answers by Framework

Browse Popular Code Answers by Language