Write a Python program to append a list to the second list


This program creates two lists, one called "Number" and one called "animal". The program then uses the "+" operator to concatenate the two lists together, creating a new list called "final_list". The final_list contains all the elements of the "Number" and "animal" lists in the order they were in the original lists. Finally, the program prints the final_list.

Source Code

Number = [10, 20, 30, 40]
animal = ["Cat", "Dog", "Lion", "Ponda"]
final_list = Number + animal
print(final_list)
 

Output

[10, 20, 30, 40, 'Cat', 'Dog', 'Lion', 'Ponda']

Example Programs