
Conditionals & Logical Operators... Mix!
Presentation
•
Computers
•
6th Grade
•
Practice Problem
•
Medium
ANDRES FELIPE GOMEZ-CASSERES ESPINOSA
Used 99+ 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?
print()
input()
variable
int()
4
Multiple Choice
What is the greater than symbol?
<
<=
>
>=
5
Multiple Choice
Which comparison operator is used to check if two variables have the same value?
==
<
>
<=
6
Multiple Choice
Which comparison operator is used to check if a variable is less than a specific number?
7
Multiple Choice
What is the result of the following expression: True OR False
False
True
8
Multiple Choice
What is the result of the following expression: True AND False
False
True
9
Multiple Choice
What is the result of the following expression: NOT(True AND False)
False
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?
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
Similar Resources on Wayground
14 questions
Lesson 7: Analyzing Character Development
Presentation
•
6th Grade
15 questions
tape diagram
Presentation
•
6th Grade
15 questions
Distributive Property
Presentation
•
6th Grade
15 questions
Measures of Center
Presentation
•
6th Grade
14 questions
Fake News
Presentation
•
5th Grade
15 questions
Y1 ICT Topic: Inserting Online Pictures in the Spreadsheet
Presentation
•
KG
14 questions
Q1, Q3, IQR
Presentation
•
6th Grade
14 questions
Polygons on the Coordinate Plane
Presentation
•
6th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
11 questions
Technology Acceptable Use
Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology
Quiz
•
4th - 8th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
16 questions
Responsible Use Guideline Quiz
Quiz
•
6th - 8th Grade
15 questions
Student Technology Agreement
Quiz
•
6th - 8th Grade