Ml assignment python

n=int(input("\n"))
a=1
for i in range(1,n+1):
b=i
a=1
for j in range(1,n-i):
print(" “,sep=”\t")
if i==1:
print(1)
else:
while a <= i:
print(b)
b+=1
a+=1
print("\n")

Output:
File “script.py”, line 11
while a <= i:
^
TabError: inconsistent use of tabs and spaces in indentation

How to rectify it ??
where is the error

hey @wick007,
the most simple solution is that , just de-indent all the code lines and then according to your logic re indent your code and then try