Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Conditional statement in python

#if statement
Python if statement is used for decision- making operation conditional statement that
Tell a computer what to do with certain information.

Input Output

If else statement
Evaluates test expression and will execute the body of if only when the test condition is True.

Input Output

Input output

Input Output
IF- El if statement:
 IF- el if statement represent that if pervious condition is not true then try this
Condition

Input Output

Nested If-Else Statement:


A statement inside another statement.

Input

Out put

You might also like