I am writing a code in python 3 to display number of digits of a given number. The code is given below:
count=0.
def fun(n):
     global count_e
         if  n<0 :
             count_e+=1
         else:
             res=fun(N/10)
             count_e+=1
N=int(input())
fun(N)
print (count_e)
I am getting indentation error. I do not know how to proceed.
I tried to explain issue with my python code. I expect a reply with a suggestion.
 
     
    