Bro why its giving indentation error

def fun(arr,n):
count=0
for i in range(n-1):
if(count==0):
if(arr[i]<arr[i+1]):
count+=1
if(count==1):
if(arr[i]>arr[i+1]):
count+=1
return count

n=int(input())
list[]
for i in range(n):
ele=int(input())
list.append(ele)

x=fun(arr,n)
if(x<2):
print(“true”)
else:
print(“false”)

hey @ajaysiddartha ,
Can you please upload this code on ide.codingblocks.com , and share me its link.
As from here , i will need to indent all the files myself and that won’t raise the particular error that you are getting.

Thank You and Happy Learning :slightly_smiling_face:.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.