
pyhon
Presentation
•
Computers
•
11th Grade
•
Easy
أروى حوّا
Used 8+ times
FREE Resource
33 Slides • 11 Questions
1
Introduction To Loops In Python
Arwa Hassan
2
Learning objective
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
you will be able to increment the sequence with the number
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
Nested loop
Grade 11
35
What is the nested loop?
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?
Introduction To Loops In Python
Arwa Hassan
Show answer
Auto Play
Slide 1 / 44
SLIDE
Similar Resources on Wayground
43 questions
Software development mythologies
Presentation
•
11th Grade
38 questions
Rhetorical Appeals and Strategies
Presentation
•
9th Grade
37 questions
Introduction to Earth Science
Presentation
•
11th Grade
37 questions
Q1L2W2D1 - Rules of Netiquette
Presentation
•
11th Grade
38 questions
Exponential Functions
Presentation
•
11th Grade
36 questions
TVL ICT COMPUTER SYSTEMS SERVICING NC II
Presentation
•
11th Grade
43 questions
i Thread
Presentation
•
11th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade