• doesn't work, weird :(.

Question related to mission Max Digit

 

def max_digit(value: int) -> int: value = str(value) result =max(map(int.value)) return result

#string = len(value) - 1
#result = 0
#i = 0
#while i < string:
    #if value[i] < value[i+1]:
        #result = value [i + 1]
       # i = i + 1

# your code here

#return result