Code.org SessionPlan#7(1 4)
Code.org SessionPlan#7(1 4)
org
LESSON 7:
Loops
Warm - up
Hello, How are you? Do you remember what did we learn in the last class?
Ok Let us revise the concepts, (Explain the terms once again to help the student understand better)
Q- What is a sequence? (Wait for student's reply)
A- Proper Order of giving Commands.
Q- What is an algorithm? (Wait for student's reply)
A- Step by step Process, written in any human language, before writing a program.
Q- What is a Debugging? (Wait for student's reply)
A- Process of removing a bug/ Error from the code.
Q- Why is Bug? (Wait for student's reply)
A- An error in the code is called a bug.
Very Good!! so we have revised everything from the last class. Now let us start with a new topic today
ok?
Today We are going to learn about loops and nested loops.
Remember during previous classes we have seen the pink block which says Repeat on it?
Yes! that is known as loop block.
A loop is used to repeat a particular action again and again.
Let me know if you have any other questions.
Explanation for
students: Loop
1. Take a look at this. BlockVery good now I will show
You remember these you a new block called as a
blocks right? Repeat Block. Do you know
What does this picture the meaning of repeat?
tell the computer to do?
https://studio.code.org/s/coursea-2020/lesson
Link s/9/levels/2
Solution for puzzles
Nested Loops
https://studio.code.org/s/course1/lessons/14/l
evels/5
SOLUTION FOR NESTED PUZZLES
Okay, so here we come to the end of the session. Congratulations! You did very
well in the class today. So did you enjoy the class? So now you understand what
a loop is and what a repeat block is and how important it is to use a repeat
block? Do you want to go back once and see what we have learnt today?? How
about we revise what we studied today?
• What is a Loop?
• What is Repeat Block?
• What is a Nested Repeat Block?
• Advantages of Repeat Block
• Ask if they have any doubts.
VERY GOOD SO WE WILL TRY TO LEARN MORE AND MORE ABOUT CODING IN
THE UPCOMING CLASSES HAVE A GREAT DAY!
HOMEWORK
Here is the text from the image:
Q.1: Repeat Block with artist (1-10):
https://studio.code.org/s/course1/lessons/18/levels/1
Q. 2: Repeat Block with Scrat (1-12):
https://studio.code.org/s/coursea-2020/lessons/8/levels/1
Q.3: Ocean Artist Puzzle (1-14):
https://studio.code.org/s/pre-express-2020/lessons/8/levels/2
Q.4: Artist Lab Project: You have 4 Squares in one row now you need to make 4 lines of
square by using outer loop or Nested loop. Use the repeat block and try to create 4 lines.
Steps:
•Login to code.org.
•Click on the Link:
https://studio.code.org/projects/artist_k1/xscqLRAXuyMJ2u7val3Nu-f9woutqTD4VLQ43ES
_vEQ
•Click on How it Works.
•Click on Remix.
Thank You !
20