Learn Before
Concept

If Statements

  • If statement evaluates a boolean expression and then executes a set of statements based on the output of the boolean expression.

  • if ,elif and else are keywords that help to achieve conditional execution of statements.

Syntax

if boolean expression:

statements

elif boolean expression:

statements

else:

statements
Image 0

0

1

Updated 2021-02-03

Tags

Python Programming Language

Data Science