
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
12 questions
La venganza y el preciosismo en las Preciosas Ridículas
Presentation
•
5th Grade
8 questions
Учимся программированию
Presentation
•
6th Grade
8 questions
Scratch to Python
Presentation
•
6th Grade
11 questions
Практикум по операторам ветвления
Presentation
•
6th - 8th Grade
9 questions
MATERI KETERAMPILAN GENERIK
Presentation
•
7th Grade
6 questions
First conditional
Presentation
•
5th - 7th Grade
10 questions
2.3 8th
Presentation
•
6th - 8th Grade
9 questions
CODEBLOCKS-NAMETAG
Presentation
•
6th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Candy
Quiz
•
4th - 8th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
22 questions
Dot Plots and Histograms
Quiz
•
6th Grade
10 questions
Memorial Day History and Traditions
Interactive video
•
5th - 8th Grade
15 questions
Histograms
Quiz
•
6th Grade
14 questions
Context Clues
Quiz
•
4th - 6th Grade