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

 

burns@bxscience.edu burnscfa > savedByZero
prev  |  next  |  chance

Write a python function called savedByZero that accepts an integer parameter and returns the number of digits in the number that have the value 0.


savedByZero(101010) → 3
savedByZero(44000209) → 4
savedByZero(234152) → 0

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

def savedByZero(num):

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

Difficulty: 2

Copyright Nick Parlante 2017 - privacy