how to append a string to list in python code example
Example 1: how to append list in python
list1 = ["hello"]
list1 = list1 + ["world"]
Example 2: add an element to list python
a=[8,5,6,1,7]
a.append(9)
list1 = ["hello"]
list1 = list1 + ["world"]
a=[8,5,6,1,7]
a.append(9)