Programming Rules:
-> Never say "I don't know". Say "Let me try".
-> Known to unknown
-> Don't think about the entire output.
-> Think about the very next step.
-> Introduce a variable only when it simplifies the solution.
-> Micro to Macro.
-> Dry run before you run.
-> Every program has three parts: Input, Process, Output.
-> Logic first, Syntax next.
Regularly solving problems improves logical thinking in coding.
The if statement:
It is used to check the condition; if it is true, the statement block will be executed.
Syntax:
if (condition):
statement-block
The else statement:
It is used to print the statement block when the if condition or elif(else if) condition is false.
Syntax:
else:
statement-block
The elif statement:
It is used when the if condition is false and to check another if condition statement block.
Syntax:
elif (condition):
statement-block
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Good Start! Add appropriate examples