Want to create interactive content? It’s easy in Genially!

Get started free

NESTED IF ELSE PRESENTATION

067 Arya Sadvilkar

Created on March 10, 2022

group 8 Python SLE Presentation

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

Nested If Else and its examples...

Created and Presented by Group 8

Index

Components of our PPT

What is Nesting?

Introduction

What is If Else?

What is Nested If Else?

Flow Chart

Example 1

Thank You

Example 2

Team

What is If Else?

Search

01 The if statement alone tells us that if a condition is true it will execute a block of statements and if the condition is false it won’t.

02 But what if we want to do something else if the condition is false. Here comes the else statement.

03 We can use the else statement with if statement to execute a block of code when the condition is false.

What is Nesting?

With computer programming, a nested function is a function contained inside of another function in the source code of a program.

You have expressions/statements inside of other expressions/statements. Given its Python, it could also be considered the level of indentation, since indentation level indicates nesting level in Python.

What is nested if else?

01

02

What is nested if else?

04

03

Nested If-Else Flowchart

Following is the flow chart diagram of the nested if-else statements process flow in python.

We added an if-else statement inside another if-else statement to execute the block of statements based on our requirements.

Example 01:

In this example, we will write a nested if-else statement. If block contains an if-else statement inside it, and else block also contains an if-else block inside it.

First we create a list.

Then we add an If statement.

'pointsSum' variable is made.

Here we create a for loop. After which, we increase the pointsSum with scores from each race.

Finally we have our Nested If-Else statement.

Output

Team 08

Arya SadvilkarFYBSCIT 67

Rinit JainFYBSCIT 32

Astha GorakhFYBSCIT 24

Ayyan PathanFYBSCIT 57

Riya PunjabiFYBSCIT 59

Thanks for your attention!