Lesson Planet
Search educational resources
  • Sign In Try It Free
  • AI Teacher Tools
    • Discover Resources Search reviewed educational resources by keyword, subject, grade, type, and more
    • Curriculum Manager (My Content) Manage saved and uploaded resources and folders To Access the Curriculum Manager Sign In or Join Now
    • Browse Resource Directory Browse educational resources by subject and topic
    • Curriculum Calendar Explore curriculum resources by date
    • Lesson Planning Articles Timely and inspiring teaching ideas that you can apply in your classroom
    • Our Story
    • Frequently Asked Questions
    • Testimonials
    • Contact Us
  • Pricing
  • School Access
    • Your school or district can sign up for Lesson Planet — with no cost to teachers
      Learn More
  • Sign In
  • Try It Free

Hi, what do you want to do?

Create a lesson plan
Create a lesson plan
Generate resources with 80+ AI teacher tools
Generate resources with 80+ AI teacher tools
Search 200,000 instructional videos
Search 200,000 instructional videos
Find a teaching resource
Find a teaching resource
While Loops Lesson PlanWhile Loops Lesson Plan
Publisher
Code.org
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
9th - 12th
Subjects
STEM
1 more...
Resource Type
Lesson Plans
Audiences
For Teacher Use
1 more...
Duration
1 hr
Instructional Strategies
Discussion
2 more...
Technology
Internet Access
Usage Permissions
Creative Commons
BY-NC-SA: 4.0
cc
Lesson Plan

While Loops

Curated and Reviewed by Lesson Planet
This While Loops lesson plan also includes:
  • Code Studio Stage
  • Join to access all included materials

Bring your pupils in the loop with while loops. Scholars learn how to modify conditional statements to produce while loops in the 14th lesson of the series. They use flowcharts to understand loops and then program some examples of loops.

3 Views 2 Downloads

Concepts

computer code, computer applications, javascript, conditional statements, logic, technology resources

Instructional Ideas

  • Have the class brainstorm in journal entries real-world infinite loops 

Classroom Considerations

  • Code Studio requires a login account, which you can create for free
  • Learners must have knowledge of counter variables and conditional statements from previous lessons

Pros

  • Includes worksheet and key
  • Online lesson plan contains hyperlinks allowing for easy navigation

Cons

  • Lesson and activity guides have inconsistent unit and lesson numbers

See similar resources:

Activity

Urinalysis

Discovery Education
What do lab tests reveal about a patient's health? Scholars perform a simulated urinalysis on two different patients by testing color, pH, glucose levels, and protein levels. Then, they compare their findings to what they know passes...
9th - 12th Science
CCSS: Adaptable
Instructional Video

Programming Basics—Statements and Functions: Crash Course Computer Science #12

Crash Course
Include an informative video on programming as part of your computer science instruction. The 12th installment in the series teaches about statements and functions required to write code. Individuals learn about the IF, FOR, and...
12 mins 9th - Higher Ed STEM
Instructional Video

The World Machine | Think Like A Coder, Ep 10

TED-Ed
And thus the story ends. After a betrayal by her robot companion, the heroine of the story must find a way through a maze. Successful completion of the maze unlocks a crystal that will help save the world. By watching the video, pupils...
12 mins 6th - 12th STEM
Instructional Video

The Artists | Think Like A Coder, Ep 5

TED-Ed
Create a diversion! Continuing the quest to save the world, the hero of the series needs to find an artifact inside a tower. To distract the guards, she programs a robot to vandalize some artwork. Viewers learn how to apply loops and...
7 mins 6th - 12th STEM
CCSS: Adaptable
Instructional Video

The Resistance | Think Like A Coder, Ep 2

TED-Ed
Join the resistance and learn computer code while you're at it. Continuing from the previous installment, the hero of the series looks for a resistance leader using a set of conditional statements. Scholars learn how to include if,...
6 mins 6th - 12th STEM
CCSS: Adaptable
Lesson Plan

Introduction to Conditional Logic

Code.org
On one condition ... explore how to use conditionals within conditionals. Scholars apply conditional statements to improve upon the app they built during a previous lesson. They also learn about nested conditionals in the 11th lesson of...
9th - 12th STEM
Lesson Plan

Looping and Simulation

Code.org
Young computer scientists continue programming with while loops by creating a program to simulate coins flipping. 
9th - 12th STEM
Lesson Plan

Design Step 3: Brainstorm Possible Solutions

Teach Engineering
Our young scientists have now specifically identified a problem, and this step helps them think of possible solutions. An outline, including guidelines, for brainstorming helps scholars stay on the right path. The resource includes...
9th - 12th STEM
Activity

Inventing a Better World

Teaching Tolerance
From play pumps that provide clean water to shoes made from trash, innovators change the world one invention at a time. After researching various inventions, young entrepreneurs develop their own. Extension opportunities include prompts...
6th - 12th Social Studies & History
CCSS: Adaptable
Lesson Plan

Antimatter Matters

Teach Engineering
Use science fiction movies to teach pupils about antimatter and alternate universes. Individuals learn about the portrayal of antimatter and alternate universes in movies such as Star Trek and Angels & Demons. They consider three...
6th - 9th Science
CCSS: Designed
Try It Free
© 1999-2026 Learning Explorer, Inc.
Teacher Lesson Plans, Worksheets and Resources

Sign up for the Lesson Planet Monthly Newsletter

Open Educational Resources (OER)

  • Health
  • Language Arts
  • Languages
  • Math
  • Physical Education
  • Science
  • Social Studies
  • Special Education
  • Visual and Performing Arts
View All Lesson Plans

Discover Resources

  • Our Review Process
  • How it Works
  • How to Search
  • Create a Collection

Manage Curriculum

  • Edit a Collection
  • Assign to Students
  • Manage My Content
Contact Us Site Map Privacy Policy Terms of Use