id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

ferrer@hendrix.edu > a_to_e
prev  |  next  |  chance

Write a function that counts the number of times the letters 'a', 'b', 'c', 'd', and 'e' appear in a string.


a_to_e('hello') → 1
a_to_e('goodbye') → 3
a_to_e('iconic') → 2

...Save, Compile, Run (ctrl-enter)

def a_to_e(s):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy