
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
40 questions
Reviewing TPCASTT Method
Presentation
•
11th Grade
36 questions
Levels of Organization - Cells to Biome
Presentation
•
KG
39 questions
Cell terms part 3 2023
Presentation
•
10th Grade
38 questions
Scientific Notation (PreAP)
Presentation
•
10th - 12th Grade
38 questions
Q1L1: Evolution of Web 4.0
Presentation
•
11th Grade
43 questions
ตัวดำเนินการบูลีน แก้ไขจากคุณ Narin Sintharom
Presentation
•
KG
36 questions
Database Analysis Revision
Presentation
•
11th Grade
43 questions
Online Safety, Security, Ethics and Etiquette Standards
Presentation
•
11th - 12th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
10 questions
Fire Prevention
Quiz
•
9th - 12th Grade
41 questions
US History STAAR Review
Quiz
•
11th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
20 questions
US History EOC STAAR 2022 Review Set 1
Quiz
•
11th Grade
11 questions
Expectations Review
Quiz
•
9th - 12th Grade