def f(x): d=0 y=1 while y <= x: d=d+1 y=y*3 return(d)
2343
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!