Question: using python 3: Write the body of the countAll function as follows: Create an empty dictionary of counts. Iterate through the characters of the string,
using python 3:
Write the body of the countAll function as follows:
Create an empty dictionary of counts.
Iterate through the characters of the string, either creating a new key-value pair or modifying an existing value
def countAll(astring): #your code goes here
print(countAll('banana'))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
