Question: Use python and write code for program. The text file Colors.txt is used in this program and i have added screenshots of the data. The
Use python and write code for program. The text file Colors.txt is used in this program and i have added screenshots of the data. The data given starts in alphabetical order.






33. Crayon Colors The file colors .txt contains the names (beginning with uppercase letters) of 123 crayon colors with one color per line. Write a program that requests a letter of the alphabet as input and then displays the colors beginning with that letter. The program should use a global variable colors that is initialized as an empty list. The function main should call three functions, one to request the initial letter, one to fill the list colors with the colors having the requested initial letter, and one to display the names of the colors in the list. See Fig. 4.9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
