Teaching loops and efficiency

I will teaching Computer Science Discoveries and wanted to run through this free online course. I am enjoying it so far. I think for 8th graders, I would probably teach “repeats” (“loopy”) using a line dance such as the electric slide. I would ask the students to write down the steps to the electric slide. Then rewrite it using repeats. Then teach the class as a whole, getting everyone up and moving.

Then review the words iteration, repeats and loops.

So, currently I teach PK thru 1st grade. Loops will probably not be a topic that I introduce to my students as a whole class. If I worked with the students more than once a week I would introduce this idea to challenge certain students. Initially I think I would start by having the students look for a pattern. Kindergartners are introduced to patterns and I believe that it is continued in first grade. But they have a basic understanding of AB… etc patterns. They might be able to break it down that way. Once they identify the pattern, the introduction of the loop should be fairly straight forward. That is the theory. Since I have not had the chance to try it out I am not sure if it would actually work. Mainly at these early elementary grades focusing on the idea of sequences is pretty good.

I teached loop for my students with example : we sing a song. Sometimes when we sing a song, there are some phrase, which should be repeat.
Ex. Are you sleeping song

Are you sleeping -------> Are you sleeping 2x
Are you sleeping

instead of write it down in two lines, we can use 2x.

it is really helpfull and fun too :wink:

I think the best way would be to ask them to reflect on the things they do over and over again. It can be any process that they do repeatedly such as getting ready for school, or learning a skill.

I use small flash cards with code such as below
Place color1
Place color2
Place color3
Place color4

I use little color cubes or small color toys and students pick their own color1, 2, 3 and 4 and then place the cubes to match the loop logic. I explain how color 4 is not repeated as it is outside the loop. My students range from 6 - 12 years. I purchased the color cubes and color penguins in Amazon long back. They are available under ‘counting toys’ search. Hope this was helpful.

Looping is a number of movements that repeat over and over.

I have introduced “loops” to my Grade 4 as “patterns that has repetition” I pair them into groups of two, one pretends to be the “robot” and the other a “programmer.” The programmer must want the robot to go somewhere around the classroom and find him/her something. And all the programmer does is say the directions “move forward, move backwards, turn left, turn right” until the robot reaches the destination.

I think the best way to introduce loops to my 6th graders is through dances or robotics.

I think, I would use the video " Getting Loopy" to help the students to understand loop concept. Then, strengthen the understanding with the iteration activities which is not only fun but very practical to define the concept.

Music patterns. Such as showing the repeated pattern that music uses to structure a song. Then take a 30 portion of that song and mix it with another 30 second song clip. When you mix these together we are creating a loop.

With students we could have 4 rows(numbered Row 1, Row 2, Row 3, and Row 4). The odd numbered rows would replicate one drum beat (ba diddy ba diddy diddy diddy ba) while the even numbered rows would replicate another drum beat (ba dun dun dun, ba dun dun dun). We could add step into the loop and pen beats or tapping.

I would use the video as well! It will be a fun introduction before showing the kids how to use dance and repetition to complete the loops.

I love the idea of getting the students up and dancing, because so many students learn at different levels and by different strategies! Plus it’s would be fun when they begin seeing where the loop starts over again!

In order to introduce loops to the students I see an opportunity to work with the PE teacher. The students could analyse a dance and then create their own using loops/repeating sequences.

With younger students I think the Macarena Dance is perfect. Especially with my class this year, I catch them dancing it all the time. The have no idea they are “looping”.

Love it, thanks for sharing :slight_smile:

I would explain the concept of looping by demonstrating and modeling. Drawing loops on the whiteboard or hula hooping would be easy for the students to comprehend.

Yes!!! I love this! I plan to use dancing with my Kinders.

I am so excited to teach looping. This past year the flossing dance move was every where at school, I think this would be an excellent example that the students could quickly relate to. I also really like the my robotic friend looping activity to use with my older students! I can’t believe how excited I am about getting the kids engaged in computer science!

I teach First grade and my students would love to teach me how to do the FLOSS dance. Because there is lots of looping it would lend itself to a great looping program. We could begin by watching students do it quickly, then having them slow it down to slow motion. Working in pairs they could write the sequencing by using arrows for the back and forth motion and the left/right arrows for the front and back swing. Then pairs could switch their algorithym with other pairs to try what they wrote down and check for bugs or celebrate with a 4-some floss dance. Gradually the whole class would have shared and our group of dancers, including me, could do the floss together while learning about LOOPING!

I would explain loops as anything you do repeatedly or in a pattern.