Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
math.log solution in Clear category for Number Length by M0PK0BKA
from math import log, floor
number_length = lambda num: floor(log(num, 10)) + 1 if num else 1
Feb. 5, 2023
Comments: