Write the syntax of the ' if' statement
Answers
Answered by
51
Answer:
Syntax. In both forms of the if statement, the expressions, which can have any value except a structure, are evaluated, including all side effects. In the first form of the syntax, if expression is true (nonzero), statement is executed. If expression is false, statement is ignored.
❥︎༄hope it helps
Anonymous:
han
Answered by
4
Answer:
For python it goes like:
if condition 1:
statement 1
elif condition 2:
statement 2
elif condition 3:
statement 3
.
.
.
elif condition n:
statement n
else:
statement m
An example is as followed below:
Similar questions