Instructions
1Initialize the first Python list using the variable "list1"; for example,
list1=[1,5,6]
2
Initialize the second Python list using the variable "list2"; for example
list2=[22,98]
3
Use the method "extend" to concatenate the lists. In this example,
list1.extend(list2)
4
Print the final list to confirm the concatenation:
print list1
In this example, the command produces the following output:
[1, 5, 6, 22, 98].