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
Created at: 2023/09/23 04:55; Updated at: 2023/09/23 08:08