
pyhon
Presentation
•
Computers
•
11th Grade
•
Easy
أروى حوّا
Used 8+ times
FREE Resource
33 Slides • 11 Questions
1
Arwa Hassan
2
By the end of this lesson, you will be able to:
1-Learn what a loop is.
2-Why do we use a loop in programming?
3-Types of loops in python.
4- How to execute a loop using python.
5-Write different programs in python using loops.
Some text here about the topic of discussion
3
4
5
6
Open Ended
Why do we use a loop in programming?
7
8
9
10
11
12
13
14
Multiple Choice
What is the output?
for N in range(3):
print("Mohammad", N )
Mohammad 1
Mohammad 2
Mohammad 3
Mohammad 0
Mohammad 1
Mohammad 2
Error
Mohammad0
Mohammad1
Mohammad2
15
Multiple Choice
for N in range(5):
print("Mohammad", N+2 )
Mohammad 2
Mohammad 3
Mohammad 4
Mohammad 5
Mohammad 6
Mohammad 2
Mohammad 4
Mohammad 6
Mohammad 0+2
Mohammad 1+2
Mohammad 2+2
Mohammad 3+2
Mohammad 4+2
Error
16
17
18
19
20
Open Ended
What if you added the third parameter?
Copy the result and answer what does the third parameter do?
21
Grade 11
22
Open Ended
Hint :
If we have a variable called ( number ) and it has a value of 2
print(number * ("!" ) )
would result
( !! )
23
24
Open Ended
What is the different between code1 and code2?
25
26
Open Ended
Before we continue with the loop!
What is the Boolean variable ??
27
28
29
Open Ended
What is the effect of having the space before else?
What are the outputs in the first example and the second one?
30
31
Exercise:
Write a program that repeats one sentence three times.
Or
Write a program that prints from 0 to 10 except for 3 or 6.
Or
Write a program using for loop to print how many times the user enters the password incorrectly.
32
33
34
Grade 11
35
A nested loop is a loop inside another loop.
Outer loop.
Inner loop.
Some text here about the topic of discussion
36
37
Multiple Choice
How many times the print statement will be executed
5 times
3 times
15 times
1 time
38
39
40
41
42
43
Open Ended
What have you learned today ?!
44
Open Ended
Please give feedback, and tell me from 1 to 10 how much you understood the lesson. How can I improve the lesson?
Arwa Hassan
Show answer
Auto Play
Slide 1 / 44
SLIDE
Similar Resources on Wayground
39 questions
Muscle Contraction and Relaxation
Presentation
•
11th - 12th Grade
37 questions
Unit 10 Test Review: Current Electricity
Presentation
•
11th Grade
37 questions
N5 SDD Revision
Presentation
•
11th Grade
40 questions
Circle Vocabulary Part 1
Presentation
•
10th Grade
39 questions
Quadratic Post Test Review
Presentation
•
11th Grade
39 questions
Day #1: Domestic Policies and Events: Kennedy through Ford
Presentation
•
11th Grade
39 questions
PEH 111
Presentation
•
11th Grade
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade