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, 22.06.2019 21:30
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 2
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, 20.10.2020 03:01
question
Geography, 20.10.2020 03:01
question
History, 20.10.2020 03:01
Questions on the website: 13722360