0
Intended
I don't know what this term means when it applies to if statements. the question is which part of an if statement should be intended.
3 ответов
+ 3
Look, the second line is indented:
if 4 < 5:
print(4)
In Python you must indent the lines after a conditional if (or else, or elif) to define a class, to define a function like:
def printSomething():
print("something")
and etc... basically all following lines after a ":" must be indented until you finish the condition (or definition of something)
(My actual english makes my explanations too large jajajaj and I can't describe it well, I hope this helps to you)
+ 4
as far as im aware intended has nothing to do with if-statments unless you use it as a phase like this if-statement works as intended.
meaning it works how you wanted it to work.