Length of Number

Published by Cool_Kidd in

Create a function that takes a number num and returns its length.

Examples

number_length(10) ➞ 2

number_length(5000) ➞ 4

number_length(0) ➞ 1

Notes

The use of the len() function is prohibited.

Watch a quick demo on how Edabit works.