Page 1 of 1

Write a program to add two lists index-wise. Create a new list that contains the Oth index item from both the list, then

Posted: Fri Jul 01, 2022 5:43 am
by answerhappygod
Write A Program To Add Two Lists Index Wise Create A New List That Contains The Oth Index Item From Both The List Then 1
Write A Program To Add Two Lists Index Wise Create A New List That Contains The Oth Index Item From Both The List Then 1 (35.35 KiB) Viewed 93 times
Write a program to add two lists index-wise. Create a new list that contains the Oth index item from both the list, then the 1st index item, and so on till the last element. any leftover items will get added at the end of the new list. Example: Given list1 = ["M", "na", "i", "Ma"] list2 = ["y", "me", "s", "tt"] Expected output ['My', 'name', 'is', 'Matt']