how to get length of integer in python code example Example: len of int python len(str(n)) #n is a number