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

 

konstans@stuy.edu > isDigit
prev  |  next  |  chance

Given c is a string of length one , return true when it is a digit 0-9, false in all other cases. (Hint, don't make a string of all the numbers!)


isDigit('0') → True
isDigit('5') → True
isDigit('9') → True

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

def isDigit(c):

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