In Python, how do you find the number of digits in an integer?
If you want the length of an integer as in the number of digits in the integer, you can always convert it to string like str(133) and find its length like len(str(123)).
str(133)
len(str(123))
1.4m articles
1.4m replys
5 comments
57.0k users