SlideShare a Scribd company logo
LOOPS
BEGINNER
PROGRAMMING
LESSONS
Lesson Objectives
1. Learn how to repeat an action
2. Learn how to use Loop Blocks
© EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 2
Repeating an Action
Let’s say we want the robot to repeat an
action over and over again.
Would you just copy the block multiple
times?
Sure, that could work!
What if I want to repeat that block forever?
Now what?
© EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 3
Loops
Loops make repeating a task multiple times easy
The added benefit is that a loop can end
whenever you want (a specific number of times,
run forever, a specific condition, etc)
© EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 4
LOOP CHALLENGE
Challenge: Write a program to go around a box once.
The simple way is to code it like this:
Use a loop to improve the code
© EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 5
Loop CHALLENGE Solution
© EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 6
Run 4
times
End of the lesson
7

More Related Content

PPTX
Eve lego minstorm loop block powepoint presentation
PPTX
Aq switches2 - Beginner
PDF
Convolutional Neural Network
PDF
STAMP, or Test Amplification to DevTestOps service, OW2con'18, June 7-8, 2018...
 
PPTX
ReactJS.pptx
PDF
What every Eclipse developer should know about progress reporting and job can...
PPT
LESSON 03_Introduction EV3 brick lesson.ppt
PPTX
Intro to programing with java-lecture 1
Eve lego minstorm loop block powepoint presentation
Aq switches2 - Beginner
Convolutional Neural Network
STAMP, or Test Amplification to DevTestOps service, OW2con'18, June 7-8, 2018...
 
ReactJS.pptx
What every Eclipse developer should know about progress reporting and job can...
LESSON 03_Introduction EV3 brick lesson.ppt
Intro to programing with java-lecture 1

Similar to Ap loops2 - Beginner (20)

PPTX
Program by Demonstration using Version Space Algebra
PDF
Ev3 student worksheets
PDF
Chapter 3
PPTX
Design Patterns- Course for students .pptx
PPTX
VMC___JAVA-THIRD QUARTER-SHS TWELVE.pptx
PPTX
Solving OWASP MSTG CrackMe using Frida
DOCX
Explain the concept of two types of network intrusions What devic.docx
PDF
My works in gitub, etc.
PDF
Lessons learned maintaining Open Source ActionScript projects
PPTX
How to not suck at JavaScript
PPT
Getting Started with Robotics
DOCX
Bc0051 – system software
PPTX
PDF
Master class in modern Java
PPT
Object Oriented Concepts and Principles
PDF
Master class in Java in 2018
PDF
Xopus Application Framework
PPT
Introduction to Groovy Monkey
PPTX
Ah pseudocode2 - Beginner
Program by Demonstration using Version Space Algebra
Ev3 student worksheets
Chapter 3
Design Patterns- Course for students .pptx
VMC___JAVA-THIRD QUARTER-SHS TWELVE.pptx
Solving OWASP MSTG CrackMe using Frida
Explain the concept of two types of network intrusions What devic.docx
My works in gitub, etc.
Lessons learned maintaining Open Source ActionScript projects
How to not suck at JavaScript
Getting Started with Robotics
Bc0051 – system software
Master class in modern Java
Object Oriented Concepts and Principles
Master class in Java in 2018
Xopus Application Framework
Introduction to Groovy Monkey
Ah pseudocode2 - Beginner
Ad

More from Romaric Saounde Tsopnang (20)

PPTX
Aq les conditionnelles - Débutant
PPTX
Ap les boucles - Débutants
PPTX
Ao light nxt2 - Beginner
PPTX
An capteur de couleur - Débutant
PPTX
An color Sensor - Beginner
PPTX
Al capteur tactile - Débutant
PPTX
Al touch2 - Beginner
PPTX
Ak custom imagessounds2 - Beginner
PPTX
Ak image et son standard - Débutant
PPTX
Aj display2 - Beginner
PPTX
Aj affichage - Débutant
PPTX
Ai turning2 - Beginner
PPTX
Ai virages - Débutant
PPTX
Ah pseudocode-fr - Débutant
PPTX
Ag moving straight2 - Beginner
PPTX
Ag deplacement droit - Débutant
PPTX
Af port view2 - Beginner
PPTX
Af vue des portes - Débutant
PPTX
Ae common issues2 - Beginner
PPTX
Ae problemes frequents - Débutant
Aq les conditionnelles - Débutant
Ap les boucles - Débutants
Ao light nxt2 - Beginner
An capteur de couleur - Débutant
An color Sensor - Beginner
Al capteur tactile - Débutant
Al touch2 - Beginner
Ak custom imagessounds2 - Beginner
Ak image et son standard - Débutant
Aj display2 - Beginner
Aj affichage - Débutant
Ai turning2 - Beginner
Ai virages - Débutant
Ah pseudocode-fr - Débutant
Ag moving straight2 - Beginner
Ag deplacement droit - Débutant
Af port view2 - Beginner
Af vue des portes - Débutant
Ae common issues2 - Beginner
Ae problemes frequents - Débutant
Ad

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Getting Started with Data Integration: FME Form 101
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Machine Learning_overview_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
1. Introduction to Computer Programming.pptx
PPT
Teaching material agriculture food technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Programs and apps: productivity, graphics, security and other tools
The Rise and Fall of 3GPP – Time for a Sabbatical?
Assigned Numbers - 2025 - Bluetooth® Document
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Getting Started with Data Integration: FME Form 101
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Weekly Chronicles - August'25-Week II
Machine Learning_overview_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
1. Introduction to Computer Programming.pptx
Teaching material agriculture food technology
A comparative analysis of optical character recognition models for extracting...
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Programs and apps: productivity, graphics, security and other tools

Ap loops2 - Beginner

  • 2. Lesson Objectives 1. Learn how to repeat an action 2. Learn how to use Loop Blocks © EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 2
  • 3. Repeating an Action Let’s say we want the robot to repeat an action over and over again. Would you just copy the block multiple times? Sure, that could work! What if I want to repeat that block forever? Now what? © EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 3
  • 4. Loops Loops make repeating a task multiple times easy The added benefit is that a loop can end whenever you want (a specific number of times, run forever, a specific condition, etc) © EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 4
  • 5. LOOP CHALLENGE Challenge: Write a program to go around a box once. The simple way is to code it like this: Use a loop to improve the code © EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 5
  • 6. Loop CHALLENGE Solution © EV3LESSONS.COM, 2016, (LAST EDIT: 7/26/2016) 6 Run 4 times
  • 7. End of the lesson 7