Question: Problem 3 (4 points): Write a Python program to convert list to list of dictionaries. Example: Sample lists: [Black, Red, Maroon, Yellow], [#000000, #FF0000, #800000,

Problem 3 (4 points): Write a Python program to convert list to list of dictionaries. Example: Sample lists: ["Black", "Red", "Maroon", "Yellow"], ["#000000", "#FF0000", "#800000", "#FFFF00"] Expected Output: [{"color_name': 'Black', 'color_code': '#000000'}, {'color_name': 'Red', color_code': '#FF0000'}, {'color_name': 'Maroon', color_code': '#800000'}, {'color_name': 'Yellow', 'color_code': '#FFFF00'}] Problem 4 (3 points): Write a python program to find the longest words. Problem 5 (4 points): Write a Python program to count the frequency of words in a file. Problem 6 (4 points): Write a Python program to copy the contents of a file to another file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
