- Write A Python Program To Convert A List Into A Dictionary In A Way That Item From The List1 Is The Key And Item From Li 1 (29.29 KiB) Viewed 49 times
Write a Python program to convert a list into a dictionary in a way that item from the list1 is the key and item from li
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a Python program to convert a list into a dictionary in a way that item from the list1 is the key and item from li
Write a Python program to convert a list into a dictionary in a way that item from the list1 is the key and item from list2 is the value Example: Given list1 = ['Ten', 'Twenty', 'Thirty'] list2 = [10, 20, 30] Expected output {'Ten': 10, 'Twenty': 20, 'Thirty': 30}