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