from math import floor, log10 r = 25**7 print(floor(log10(abs(r))+1)) #10 dígitos
Standard input is empty
10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!