Skip to content

Instantly share code, notes, and snippets.

@AseiSugiyama
Last active May 7, 2022 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AseiSugiyama/0fbd2e33dad9f86a39dd1245b3c7881d to your computer and use it in GitHub Desktop.
Save AseiSugiyama/0fbd2e33dad9f86a39dd1245b3c7881d to your computer and use it in GitHub Desktop.
testing-machine-learning-system
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