Search Header Logo
Conditionals & Logical Operators... Mix!

Conditionals & Logical Operators... Mix!

Assessment

Presentation

Computers

6th Grade

Practice Problem

Medium

Created by

ANDRES FELIPE GOMEZ-CASSERES ESPINOSA

Used 98+ times

FREE Resource

12 Slides • 7 Questions

1

Let's mix thing up!
(Conditionals & Logical Operators)

By Andrés

2

Flash Warm Up

You will face 7 questions.
You will only have 30 seconds each.

3

Multiple Choice

What is the function, in Python, that asks for information?

1

print()

2

input()

3

variable

4

int()

4

Multiple Choice

What is the greater than symbol?

1

<

2

<=

3

>

4

>=

5

Multiple Choice

Which comparison operator is used to check if two variables have the same value?

1

==

2

<

3

>

4

<=

6

Multiple Choice

Which comparison operator is used to check if a variable is less than a specific number?

1
<
2
==
3
>=
4
>

7

Multiple Choice

What is the result of the following expression: True OR False

1

False

2

True

8

Multiple Choice

What is the result of the following expression: True AND False

1

False

2

True

9

Multiple Choice

What is the result of the following expression: NOT(True AND False)

1

False

2

True

10

Review time...

Let's remember the concepts we have seen so far in Python...

11

Variables

They are like boxes to store information in the computer. If your computer needs to remember something, you need a variable.
They ALWAYS need a name!

12

How do you create a variable?

my_age = 42

You put the variable's name, followed by an equal symbol and the information you want to store.

13

What if I don't know the info?

Ask for it! with the input() function...

You need to put the question you want to ask between the parenthesis. Remeber to use quotes (").

input("What is your age?")

14

Question time...

Is there a relation between the input function and variables in Python?

15

Conditionals

Conditionals are used to make decisions, or do different things, based on the result of a CONDITION (True or False).
Therefore, the condition is ALWAYS a comparison.

16

How do you create a conditional?

media
media

17

Logical Operator

Logical Operators are used to join or merge two or more conditions, making one new condition that can either be True or False.

18

Activity

You are a farmer and you have a field of crops. You want to water your crops, but you don't want to waste water. You know that the crops need water if the soil is dry, but also when the weather is hot. Write a program that tells you if you have to water your plants.

You are a forest ranger and you are monitoring the forest for wildfires. You know that a wildfire can start if the temperature is high and the humidity is low. Write a program that sends and alert if the likelihood of a wildfire is high.

Criteria 7 and 8. Requisite to 9 and 10.

19

Question time...

Is there a relation between the input function and variables in Python?

Let's mix thing up!
(Conditionals & Logical Operators)

By Andrés

Show answer

Auto Play

Slide 1 / 19

SLIDE