Exercises - Week 6-9
Exercises - Week 6-9
Expected Result : 2
Example:
Original list: ['abcd', 'abc', 'bcd', 'bkie', 'cder', 'cdsw', 'sdfsd', 'dagfa', 'acjd']
Items start with a from the said list: ['abcd', 'abc', 'acjd']
5) Write a Python program to combine two lists into a dictionary. The elements of the
first one serve as keys and the elements of the second one serve as values. Each item
in the first list must be unique and hashable.
Example:
Original lists:
[1, 2, 3, 4, 5]