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

 

max_digit


Return the largest digit in a whole number. No strings allowed!!


max_digit(48291) → 9
max_digit(77777) → 7
max_digit(1234) → 4

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

def max_digit(n):

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: 290

Copyright Nick Parlante 2017 - privacy