Answers for "how to append python"

1

append in python

EmptyList = []
list = [1,2,3,4]
#for appending list elements to emptylist
for i in list:
  EmptyList.append('i')
Posted by: Guest on April-06-2021
0

add an element to list python

a=[8,5,6,1,7]
a.append(9)
Posted by: Guest on May-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language