
python-selection-statements
Presentation
•
Computers
•
7th - 12th Grade
•
Hard
M S
Used 13+ times
FREE Resource
15 Slides • 20 Questions
1
Draw
how do you feel today?? circle your choice>>
2
Selection conditional statements
Chapter 4 - section 1
3
Objectives
if - statement
if - else statement
if - elif statement
define and use
selection control structure
define
4
Lets start with a revison
5
Multiple Choice
control structure means
step by step code running
the flow of the code in the program
decision and branching code
controlling the code
6
Multiple Choice
Conditional statements are expressions that result in either a yes or No
true
false
not sure
I dont remember
7
Multiple Choice
8
Multiple Choice
9
Multiple Choice
Relational operators is like:
>
OR
=
AND
10
Multiple Choice
Not a Relational operators :
=
<=
>
==
11
Multiple Choice
Using the variables
Lexus_XR = 4500 and Tesla = 5200 in Python,
this expression :
Lexus_XR >= Tesla
will be
False
True
12
Multiple Choice
equal relational operator
=
!=
==
13
14
in python we use
if Statements
for decision making
selection means using statements (rules) that is used for decision making
15
in python we use
if Statements
for decision making
16
condition is used in our everyday life
For example
Traffic lights are an example of conditional statements. Since the red light means stop and the green light means to move.
17
can you give other examples??
18
The if statement
The if statement is used together with conditional statements
to decide whether to run a code block or skip it.
19
20
Multiple Choice
if statement is used together with ------------ in order to work correctly
control statement
input function
conditional statement
print function
21
Multiple Choice
what will be the output of the shown code?
see you tomorrow
you should stay and attend classes
error
nothing
22
Multiple Choice
what is the output
the weather still hot
its not hot any more
the weather still hot
its not hot any more
temp = 30
23
Multiple Choice
the if statement will ------the block of code ( in line 4 )
execute ( run )
skip ( not run )
24
Multiple Choice
line 4 in this code will be
skipped
executed
error
nothing
25
Multiple Choice
line 4 in this code will be skipped because
time is > 8
the condition of if is false
there is an error in the code
time must = 8
26
how to fix this ? >>>>>>>>
27
28
29
Multiple Choice
so if you are coding one selection or one option
then its better to use ?
if
statement
if - else
statement
if - elif - else
statement
sequencing
30
Multiple Choice
and if you are coding two selections or two options
then its better to use ?
if
statement
if - else
statement
if - elif - else
statement
sequencing
31
Multiple Choice
but if they are more then two selections or options
then its better to use ?
if
statement
if - else
statement
if - elif - else
statement
sequencing
32
Multiple Choice
if no selections or no repeating you will use ---- coding
if
statement
if - else
statement
if - elif - else
statement
sequencing
33
34
35
Open Ended
Exit Ticket
tell me about what you learned today
how do you feel today?? circle your choice>>
Show answer
Auto Play
Slide 1 / 35
DRAW
Similar Resources on Wayground
31 questions
Ecosystems
Presentation
•
8th - 12th Grade
27 questions
Simple Machines and Work
Presentation
•
8th - 12th Grade
32 questions
Physical and Chemical properties -Study guide
Presentation
•
7th - 12th Grade
28 questions
41 JavaScript Instrukcje sterujące
Presentation
•
KG
29 questions
40 JavaScript Operatory
Presentation
•
KG
30 questions
Program aplikasi pengolah angka
Presentation
•
7th - 12th Grade
26 questions
Monetary and Fiscal Policy Analysis
Presentation
•
8th - 12th Grade
26 questions
Apostrophes
Presentation
•
8th - 12th Grade
Popular Resources on Wayground
19 questions
Naming Polygons
Quiz
•
3rd Grade
10 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
Discover more resources for Computers
45 questions
AP CSP Exam Review
Quiz
•
9th - 12th Grade
18 questions
Company Logos
Quiz
•
6th - 8th Grade
10 questions
Copyright and Fair Use
Quiz
•
6th - 8th Grade
35 questions
Keyboarding Basics
Quiz
•
5th - 8th Grade
84 questions
PLTW IED EOC Review
Quiz
•
9th - 12th Grade
20 questions
HTML Basics
Quiz
•
7th Grade
60 questions
2024 CSP-AP Final Exam Review
Quiz
•
9th - 12th Grade
50 questions
IBT Final Exam Review (Spring)
Quiz
•
9th - 12th Grade