Last active
May 7, 2022 07:05
-
-
Save AseiSugiyama/0fbd2e33dad9f86a39dd1245b3c7881d to your computer and use it in GitHub Desktop.
testing-machine-learning-system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calc_digits(number: int): | |
if number >= 0: | |
return len(str(number)) | |
else: | |
return len(str(number)) - 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment