Search Header Logo
Conditionals Python

Conditionals Python

Assessment

Presentation

Computers

6th Grade

Practice Problem

Hard

Created by

ANDRES FELIPE GOMEZ-CASSERES ESPINOSA

Used 342+ times

FREE Resource

9 Slides • 3 Questions

1

Conditionals in Python

By Andrés

2

Warm Up

As always, you will face some questions about the concepts and skills we worked on previous classes

3

Multiple Choice

Question image

What is the output of the flowchart?

1

:)

2

:(

3

:|

4

:P

4

Multiple Choice

Question image

What is the output of the flowchart?

1

:)

2

:(

3

:|

4

:P

5

Multiple Choice

Imagine that you want to check if the temperature (T) is between 15°C and 20°C. You know that you have the following conditions: T>=15 and T<=20. Which logical operator you need to use if you want to make this program?

1

NOT

2

OR

3

AND

6

In any programming language, the code needs to make decisions and carry out actions accordingly depending on different inputs. For example, in a game, if the player's number of lives is 0, then it's game over.

Let's remember...

media

7

Check the three parts of the conditional implemented in Python

Conditionals in Python

media

8

Check the three parts of the conditional implemented in Python

Conditionals in Python

media

​Condition

9

Check the three parts of the conditional implemented in Python

Conditionals in Python

media

​Condition

Instructions if True

10

Check the three parts of the conditional implemented in Python

Conditionals in Python

media

​Condition

Instructions if True

Instructions if False

11

Be careful with the indentation. If you don't use it, your code won't work!

Indentation

media

12

Activity

Select one problem, from the competition, and implement it using Python

Remember:
variable = input("Question")

Conditionals in Python

By Andrés

Show answer

Auto Play

Slide 1 / 12

SLIDE