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 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz