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]

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad