apend in python code example
Example 1: how to append list in python
list1 = ["hello"]
list1 = list1 + ["world"]
Example 2: what is append use
it=[]
for i in range(11):
it.append(i)
print(i)
list1 = ["hello"]
list1 = list1 + ["world"]
it=[]
for i in range(11):
it.append(i)
print(i)