Write a UDT (class) to contain MorseCode data, as stored in the MorseCode.csv file. Read each line from the MorseCode.csv file and convert it to a MorseCode object. After constructing the MorseCode object, insert it into a Python List holding MorseCode objects. The MorseCode list should also be a data member of a UDT class.
Define the necessary operators to support Sorting and Comparing MorseCode objects. First sort the MorseCode list by Letter or Number. Then convert this sentence to MorseCode by looking up each character in the list and printing the MorseCode:
“THE QUICK BROWN POODLE JUMPED OVER THE LAZY FOX 123 TIMES”
example files attached