Strigoides Strigoides - 1 year ago 98
Python Question

Length of an integer in Python

In Python, how do you find the number of digits in an integer?

Answer Source

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)).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download