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

Enter List 1 : [4,5,6,7]

Enter List 2 : [1,2,3]

[4, 5, 6, 7, 1, 2, 3]

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad