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

 

cse160-staff@cs.washington.edu cse160_20au_checkin01 > count_z
prev  |  next  |  chance

Return the number of times the letter z occurs in the given string.


count_z('lazy') → 1
count_z('really lazzzy') → 3
count_z('') → 0

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

def count_z(input_str):

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