list1 = [1,2,3]list2 = [4,5,6]list3 = list2 + list1 print("Concatenated List is " + str(list3))
in python, use above code but instead of using two given listsof integers, ask user to input two lists of integers toconcatenate.
list1 = [1,2,3] list2 = [4,5,6] list3 = list2 + list1 print("Concatenated List is " + str(list3)) in python, use above
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am