27
loading...
This website collects cookies to deliver better user experience
a=5
b=10
if a<b:
print("Using 4 space for indentation")
print("using tab for indentation")
File "c:\Projects\Tryouts\listindexerror.py", line 6
print("using tab for indentation")
IndentationError: unexpected indent
number=6
for i in range(1,number):
print (i)
print(number)
File "c:\Projects\Tryouts\listindexerror.py", line 4
print(number)
IndentationError: unexpected indent
number=6
for i in range(1,number):
print (i)
print(number)
a=5
b=6
if a< b:
print("a is smaller")
else:
print("b is smaller")
File "c:\Projects\Tryouts\listindexerror.py", line 6
else:
^
IndentationError: unindent does not match any outer indentation level
a=5
b=6
if a< b:
print("a is smaller")
else:
print("b is smaller")
a is smaller