
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
16 questions
CONDITIONAL SENTENCES
Presentation
•
6th - 7th Grade
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
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade