0

IndetationError

When I run this Programm, an IndetationError came. But what can I do. The Error came by if user == "Jannis" or "Ninj4": print ("Hello Master :D") By the Computer is blank, But Not by SoloLearn https://code.sololearn.com/cSs4Fy5ZOBfF/?ref=app

16th Aug 2017, 7:36 PM
Ninj4
1 Odpowiedź
+ 1
You have to press tab because the interpreter looks for intended blocks, so that it knows that it belongs to the if-statement : in java it would be: if (...){ doSomething(); } in Python: if (...): doSomething()
17th Aug 2017, 8:00 AM
Jonas Schröter
Jonas Schröter - avatar