subject

Using Python 3, I need a function that takes as a parameter a string and returns a dictionary that tabulates how many of each letter is in that string and does not count spaces. The string should contain characters other than letters, but it will only count the letters(it will not count numbers or spaces). The string could even be the empty string (just ""). Lower-case and upper-case versions of a letter should be part of the same count. The keys of the dictionary should be upper-case letters. If a letter does not appear in the string, then it would not get added to the dictionary. If the string is: "AaBb278"
then the dictionary that is returned should contain these key-value pairs:

{'A': 2, 'B': 2}
Do not use the isalpha() funciton, the collection method or the import method.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
To move an excel worksheet tab, simply right-click on it drag and drop it double-click on it delete it
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being displayed?
Answers: 1
You know the right answer?
Using Python 3, I need a function that takes as a parameter a string and returns a dictionary that t...
Questions
question
Mathematics, 19.11.2020 18:40
question
English, 19.11.2020 18:40
question
Physics, 19.11.2020 18:40
question
Spanish, 19.11.2020 18:40
question
Arts, 19.11.2020 18:40
Questions on the website: 13722362