Programming Examples
Python program to input two list and create third list which contains all elements of the first elements followed by all elements of second list
Write a python program that inputs two lists and creates a third, that contains all elements of the first followed by all elements of the second.Â
Solution
list1=eval(input("Enter List 1 : "))
list2=eval(input("Enter List 2 : "))
list3=list1+list2
print(list3)
Output/ Explanation:
Enter List 1 : [4,5,6,7]
Enter List 2 : [1,2,3]
[4, 5, 6, 7, 1, 2, 3]