Search Header Logo
Python - Conditional Statement 1

Python - Conditional Statement 1

Assessment

Presentation

Computers

7th - 12th Grade

Easy

Created by

Samia Mohammad

Used 22+ times

FREE Resource

21 Slides • 8 Questions

1

Python - Conditional Statement 1

Week 3 - lesson 3

Ms. Samia Dallah

Slide image

2

Slide image

3

Slide image

4

Slide image

5

Slide image

6

Slide image

7

Slide image

8

Poll

Question image

Look at the diagram and place your answer. Is the condition satisfied?

True

False

9

Slide image

10

Slide image

11

Slide image

12

Open Ended

Question image

Discussion time!

Have a look at the flow diagram and explain in few words your analysis then we will discuss the answers.

13

Slide image

14

Slide image

15

Slide image

16

Slide image

17

Slide image

18

Multiple Choice

Question image

Which statement will be executed based on the conditions?

data=0

1

0 is a positive number

2

The data is 0

3

0 is a negative number

19

Slide image

20

Slide image

21

Open Ended

Practice:

Write a Python code that indicates a pass or fail mark based on the following condition.

To pass, the mark must be > 60 otherwise fail

You may use this online compiler to test your code: https://www.programiz.com/python-programming/online-compiler/

then share your code here or in the teams chat.

22

Slide image

23

Slide image

24

Multiple Choice

A conditional statement is also known as

1

limits statements

2

decision-making statements

3

choosing statements

25

Multiple Choice

The ‘else’ statement is optional in Python

1

TRUE

2

FALSE

26

Multiple Choice

Question image

What is the output of this code when we run it?

Note that temperature=15

1

nothing

2

print(It's warm") print("Drink water")

3

print("Done")

4

print("Drink water")

27

Fill in the Blanks

Type answer...

28

Slide image

29

Slide image

Python - Conditional Statement 1

Week 3 - lesson 3

Ms. Samia Dallah

Slide image

Show answer

Auto Play

Slide 1 / 29

SLIDE