0% found this document useful (0 votes)
48 views8 pages

SD3 3

The document provides instructions for a coding lesson on loops and repetition commands in Python. It includes vocabulary words, objectives for the lesson which are to review loops, learn more about repetition commands using videos, and practice commands by creating a shopping list program. It gives materials for students which include practice exercises and instructions for the Today's Mission which is to create a program to organize a shopping list alphabetically using loops. It also provides materials for the instructor, including estimated times and instructions for walking around to help students during different parts of the lesson such as learning time, checkpoints, and practice exercises.

Uploaded by

lucas alencar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views8 pages

SD3 3

The document provides instructions for a coding lesson on loops and repetition commands in Python. It includes vocabulary words, objectives for the lesson which are to review loops, learn more about repetition commands using videos, and practice commands by creating a shopping list program. It gives materials for students which include practice exercises and instructions for the Today's Mission which is to create a program to organize a shopping list alphabetically using loops. It also provides materials for the instructor, including estimated times and instructions for walking around to help students during different parts of the lesson such as learning time, checkpoints, and practice exercises.

Uploaded by

lucas alencar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Coding

Ensino Fundamental
8° e 9° Anos

Coding Map SD3.3

Theme: Loopings Tempo: 100 min

Learning Goals

● Specific English vocabulary for repetition and loop commands.


● Association between loops and numerical lists.

Expectations for students at the end of this class

Students are expected to understand how to use loops in Python.

Let’s Start

Student’s material

Useful words
 While – enquanto
 Repetition - repetição
 Saving time - economizando tempo

Welcome Back!
Hello students, welcome back to the Coding Meeting!
In the last meeting we studied repetition commands. They are useful for saving time, and important if you don't
like writing the same thing over and over again. We will continue this study today!Let's check the objectives of
the day by clicking on the topics below:

Objectives
1. Rewind: What have I learned? Take a look at your Coding Documentation.
2. Learn more about repetition commands.
3. Use the Trinket IDE to practice the repetition commands.
4. Create a shopping list and sort it alphabetically.
5. Update your Coding Documentation and submit your Today's Mission link at Canvas.

Go to the next page to return your Python learning.

Instructor’s material
Welcome students and organize the learning environment.
Round 1: The students must complete the Let's Start section, read about the objectives of the day and also
complete the review activity there. During this time, walk among the tables, answering possible questions from the
students. If necessary, explain the “useful words” to students.
Estimated time: 15 minutes

Learning Time

Student’s material

Vocabulary

 list - lista

 remember - relembrar

 successively - sucessivamente

 scroll - percorrendo

 mix - misturar

 instead - ao invés

 true - verdadeiro

 false - falso

Let's remember!

In the last meeting we studied the "for" command. It works with numerical lists, repeating commands while
"scrolling" through the list.

See the video below for a reminder of this command.

https://youtu.be/3SpUh0rM3Dg

While

Remember that conditions, in Python, can be true or false. For example, let's analyze the condition "n < 5".

o If n = 0, "n < 5" is true.

o If n = 6, "n < 5" is false.

The "while" statement in Python works as long as the condition is true. Thus, if we create the command "while n
< 5", the program will work for n = 0, 1, 2, 3 and 4, but as soon as n = 5 the condition becomes false and the
program stops working.

Consider the example below: as long as the user types numbers less than 10, the program works. As soon as we
enter a number greater than 10, the condition becomes false and the program stops working.

Look the word "ESCOLA". 

It has 6 letters, so it can be seen as a list of 6 elements. So we can mix the "while" command with that word. Look
what happens when we use the word instead of the numerical list:

We can store the word in a variable, and ask the "while" statement to loop through the variable. The result will be
the same as if we use for.

Watch the video to learn more about this command:

https://youtu.be/UQn0cKvoFa8

You can create cool stuff with this command. For example, we can create a list and store it using while:
We can mix math with the while statement. For example, if I wanted to write the first letter once, the
second twice, etc., I could create a "counter", increasing this counter at each step:

Well done! Move on to the next page to practice what you learned!

Instructor’s material

Today's Learning Time will continue with “for” commands, introducing the “while” structure too. The “while”
needs to be used with a logical structure. It will repeat commands until a condition is satisfied.
Round 2:  while the students do the Learning Time activities, go around the tables helping with possible
questions. 
Estimated time: 30 minutes

Checkpoint

Student’s material

Instructor’s material

At the end of learning time, use the quiz to check students' understanding of the topics studied during today's
meeting. This checkpoint also picks up on some conditional and math commands from the previous encounters.
Round 3: use this moment to go through the tables and verify that the students are doing the activities.
Estimated time: 15 minutes

Training Time

Student’s material

Exercise 3.3A
Create a Python program that reads a sentence and writes that sentence horizontally, capitalizing all letters using
the “while” command.

Exercise 3.3B
Create a Python program that prints the 7 times table using the "while" command.

Exercise 3.3C
Create a Python program that reads a sentence and counts how many times the letter "a" appears.
Tips:
1) Create a "counter" for the total letters "a", starting with counter = 0.
2) Create a structure in "while" to go through the letters of the sentence
3) If the letter equals "a", do counter = counter + 1

Instructor’s material

Training Time activities involve again various applications of “for” and “while” commands.
Remind students about the importance of completing the Coding Documentation.
Round 4: encourage students to do activities. Use this moment to walk around the tables, check if students are
doing the activities and solve questions.
Answer examples:
3.3A
3.3B

3.3C

Estimated time: 30 minutes

Today’s Mission
Student’s material

Now it's your time to practice what you learned! Use the IDE to solve the exercises.
How about creating a program that organizes a shopping list in alphabetical order?
First, the user must insert the shopping list items into a list using the append() command.
Then the program uses the while statement to loop through each element in the list, convert it to lowercase using
the lower() method, and then sort the list alphabetically using the sort() command.

Instructor’s material

Today’s mission is to create a shopping list.

Solution:

Round 5: use this moment to walk around the tables, check if students are doing the activities and solve questions.

Submit and Clean Up

Student’s material

<slide básico para o submit and clean up, contendo as instruções de inserção de link e de arrumação do ambiente>

Instructor’s material

In the next section, Submit & Clean Up, if the student clicks on “iniciar tarefa”, this menu will appear and it’s just
paste the code on URL blank space:

The teacher, with the help of the monitors, must check if all the students posted their Today’s Mission link
in the Coding Documentation file. 
There is a unique slot in each encounter to be filled with this link.
This correction will not be part of the final grade, it will only be useful to help the teacher understand which
students are having more difficulties.
Estimated time: 15 minutes

You might also like