- 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 91 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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a program to add two lists index-wise. Create a new list that contains the Oth index item from both the list, then
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']