add a string to a list code example
Example 1: python add a string to a list
list = ["other str", 2, 56]
list.append("string")
# list = ["other str", 2, 56, "string"]
Example 2: python add all values of another list
a = [1, 2, 3]
b = [4, 5, 6]
a += b
# another way: a.extend(b)