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]

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad