What is a decision structure?
A decision structure is defined as,
Syntax:
"if" statement:
if condition:
statement(s)
"If-else" statement:
if condition:
statement(s)
else:
Statement(s)
"nested if" statement:
if condition-1:
if condition-2:
if condition-3:
statement-1
else:
statement-2
else:
statement-3
else:
statements-4
"elif ladder" statements:
if condition-1:
Statement-1
elif condition-2:
Statement-2
elif condition-3:
Statement-3
elif condition-n:
Statement-n
else:
Default Statement