Question: Define a function called letters that takes a string called text and returns a dictionary. The dictionary should have 2 6 keys - - one
Define a function called letters that takes a string called text and returns a dictionary. The dictionary should have keys one for each letter of the alphabet count a and A both as occurrences of a and the value for each key should be the number of times that letter appears in the text.
Write a program that calls letters on the following encrypted text file: encrypted.txt or use this version for mac
Before our next class, use the link below to upload your letters function and the output of running letters on the encrypted file you can just upload the output as a separate file or include it as a comment in your main file if you're doing the optional bonus, do that before uploading so that you can upload a single file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
