
Conditionals Python
Presentation
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
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
What is the output of the flowchart?
:)
:(
:|
:P
4
Multiple Choice
What is the output of the flowchart?
:)
:(
:|
: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?
NOT
OR
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...
7
Check the three parts of the conditional implemented in Python
Conditionals in Python
8
Check the three parts of the conditional implemented in Python
Conditionals in Python
Condition
9
Check the three parts of the conditional implemented in Python
Conditionals in Python
Condition
Instructions if True
10
Check the three parts of the conditional implemented in Python
Conditionals in Python
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
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
Similar Resources on Wayground
7 questions
M1 - Python IF 2
Presentation
•
7th Grade
14 questions
4.2 Add up a total (Y7)
Presentation
•
7th Grade
11 questions
Reviewer: Challenge Assessment [1st Term]
Presentation
•
6th Grade
10 questions
Moj program
Presentation
•
5th Grade
11 questions
G7 - CA3-Checkpoint 3 (PSA) - Section 2 - LMS Quiz
Presentation
•
7th Grade
12 questions
22_Величини. Команди присвоєння
Presentation
•
7th Grade
7 questions
Conditionals
Presentation
•
7th Grade
16 questions
CONDITIONAL SENTENCES
Presentation
•
6th - 7th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade