+ 1
What is the error of that code
Find the reason of error on that code https://code.sololearn.com/cDBSROJv65oq/?ref=app
3 Answers
+ 1
It clearly says indentation error.
Do not leave that space before print.
https://code.sololearn.com/cZjq6SnqbuSl/?ref=app
0
Error
0
This error is an Indentation Error because there are tabs before the sentences and python determines branches with indentation but if there are no operations to do with , python returns an error.
You can fix it by simply remove tabs or spaces from the sentence or declare a function to keep them unchanged.
For example:
def printText():
print('Something you want')
#then call it to get result:
printText()
Keep in mind to be careful with spaces,tabs and indentation !