0:0015:15Code.org Express Lesson 13 Snowflakes with Anna and ElseYouTubeStart of suggested clipEnd of suggested clipAlong long sides okay we can do that to draw a hexagon. You will need to move forward by 50 pixels.MoreAlong long sides okay we can do that to draw a hexagon. You will need to move forward by 50 pixels. Turn right by 60 degrees and repeat it six times aha.
When you put a loop inside of another loop, we call that a nested loop. For example, here we're given the code already to draw one triangle with sides of length 100 pixels using the repeat times block set to three, once for each side of a triangle.
15:0837:32Code.org Nested Loops in Maze All Answers Explained Course D, E, F ...YouTubeStart of suggested clipEnd of suggested clipWell first do this three times move forward i move forward once it's gonna hit the bottom of thisMoreWell first do this three times move forward i move forward once it's gonna hit the bottom of this pink small pink mouth thing go back to the top and i gotta do it. Again.
0:0016:04Code.org Express Course Lesson 12 Nested Loops in Maze - YouTubeYouTubeStart of suggested clipEnd of suggested clipIn this code.org. Tutorial. We are going to be using nested loops so a loop inside of another loopMoreIn this code.org. Tutorial. We are going to be using nested loops so a loop inside of another loop repeat inside of a repeat it makes code shorter more efficient.
In general, something that is nested is fully contained within something else of the same kind. In programming, nested describes code that performs a particular function and that is contained within code that performs a broader function. One well-known example is the procedure known as the nested do-loop .
0:0019:49Code.org Course E Lesson 9 Fancy Shapes using Nested LoopsYouTubeStart of suggested clipEnd of suggested clipEach side is a hundred pixels. And you need to turn 120 degrees okay we have one block in our workMoreEach side is a hundred pixels. And you need to turn 120 degrees okay we have one block in our work area and we can use up to six. So let's see there are 100 pixels. So let me do a move forward 100.
In Python, Loops are used to iterate repeatedly over a block of code. In order to change the way a loop is executed from its usual behavior, control statements are used. Control statements are used to control the flow of the execution of the loop based on a condition.
This course is a review of artist concepts from Course 2. Students will draw images with the artist using a combination of sequences and loops.
Count the number of times an action should be repeated and represent it as a loop
In the Artist levels students are not constrained to 90 degree angles. Having protractors available can be help students better visualize the angles they need.
Use these activities to enhance student learning. They can be used as outside of class activities or other enrichment.