Answers for "append item in list python"

5

append item to array python

data = []
data.append("Item")

print(data)
Posted by: Guest on May-08-2020
0

add an element to list python

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

lsit append in python

List=[1,'a',"hello"]
List.append(True)
print(List)
# output: [1, 'a', 'hello', True]
Posted by: Guest on October-21-2020

Python Answers by Framework

Browse Popular Code Answers by Language