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

 

countFs


countFs(phrase) -- Given a string phrase, return the total number of "f" and "F" in the phrase. (People generally get some of these wrong because not everything that is an "f" sounds like one out loud, but computers are great at this.)


countFs('Finished files are the result of years of scientific study combined with the experience of years.') → 6
countFs('Python is fun.') → 1
countFs('Python is cool.') → 0

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

def countFs(phrase):

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

Copyright Nick Parlante 2017 - privacy