
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
42 questions
Origin of the Universe
Presentation
•
11th Grade
38 questions
Unit 2 Data transmission and encryption -T2 Data transmission
Presentation
•
10th - 11th Grade
39 questions
Blood Types
Presentation
•
11th Grade
40 questions
Fossil Fuels
Presentation
•
11th Grade
37 questions
6.1 Intro to polygons
Presentation
•
10th Grade
40 questions
CSS 7 - OHS v2
Presentation
•
12th Grade
40 questions
Newton's Third Law
Presentation
•
11th Grade
41 questions
Manifest Destiny
Presentation
•
11th 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
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade
22 questions
Revise and Edit Final Review 3
Quiz
•
8th - 12th Grade