+ 1

What is the error of that code

Find the reason of error on that code https://code.sololearn.com/cDBSROJv65oq/?ref=app

18th Mar 2021, 1:46 PM
Vijay Kumar
Vijay Kumar - avatar
3 odpowiedzi
+ 1
It clearly says indentation error. Do not leave that space before print. https://code.sololearn.com/cZjq6SnqbuSl/?ref=app
18th Mar 2021, 1:56 PM
Avinesh
Avinesh - avatar
0
Error
18th Mar 2021, 1:47 PM
Vijay Kumar
Vijay Kumar - avatar
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 !
18th Mar 2021, 2:24 PM
Ervis Meta
Ervis Meta - avatar