Skip to ContentMini Arrow Down Icon
  • Codecademy Logo
  • Codecademy Logo
Career: Building a Web Dev Portfolio
Career: Interview Prep
Career: Jobs in Coding
Career: Recruiter Advice
Community: Chapter Leader Quick Tips
Community: Chapters
Community: Events
Community: Hackathon
Learner Stories
Learning to Code: CS101
Learning to Code: Definitions
Learning to Code: HTML & CSS
Learning to Code: Intro to TypeScript
Learning to Code: JavaScript
Learning to Code: Python
Learning to Code: R
Learning to Code: Setting Up
Learning to Code: Tips
Learning to Code: iOS Development
Live: All Livestreams
Live: Augmented Reality
Live: Creative Coding with p5.js
Live: Intro to Emojicode
Live: Learn From Home Day
Live: Linear Regression with Python
Live: Master Stats with Python
Live: Visualize Data with Python
Welcome to Codecademy
Videos Home
  1. Home/
  2. Learning to Code: Definitions/
  3. Intro to Programming: Loops

Intro to Programming: Loops

125,241 Views | Jul 26, 2019
facebooktwitterlinkedin

Loops are a fundamental concept in computer science. Here's an explainer on how they work, with the help of our favorite dessert.

- - - - - 
Join the millions learning to code with Codecademy.
Learn to code: https://j.mp/334JBBi
Check out our full course catalog: https://j.mp/3aTMMQz

Favicon Icon
Codecademy

More videos

  • 14:54
    Java vs JavaScript257,180 views
    3 years ago
  • 10:50
    What is pseudocode and how do you use it?198,622 views
    3 years ago
  • 09:21
    What is Agile?161,587 views
    3 years ago

Learn More on Codecademy

skill path

Code Foundations

Beginner friendly,
15 Lessons

Codecademy from Skillsoft

  • About
  • Careers
  • Affiliates
  • Shop
    • Twitter Icon
    • Facebook Icon
    • Instagram Icon
    • Youtube Icon

Resources

  • Projects
  • Challenges
  • Docs
  • Cheatsheets
  • Articles
  • Videos
  • Blog
  • Career Center

Support

  • Help Center

Community

  • Forums
  • Discord
  • Chapters
  • Events
  • Learner Stories

Individual Plans

  • Pro Membership
  • For Students

Enterprise Plans

  • Business Solutions

Mobile

  • Download on the App Store
  • Get it on Google Play

Support

  • Help Center

Course Catalog

Languages

  • HTML & CSS
  • Python
  • JavaScript
  • Java
  • SQL
  • Bash/Shell
  • Ruby
  • C++
  • R
  • C#
  • PHP
  • Go
  • Swift
  • Kotlin

Subjects

  • Web Development
  • Data Science
  • Computer Science
  • Developer Tools
  • Machine Learning
  • Code Foundations
  • Web Design
  • —
  • Full Catalog
  • Beta Content
  • Roadmap

Languages

  • HTML & CSS
  • Python
  • JavaScript
  • Java
  • SQL
  • Bash/Shell
  • Ruby
  • C++
  • R
  • C#
  • PHP
  • Go
  • Swift
  • Kotlin
  • Privacy Policy
  • Cookie Policy
  • Do Not Sell My Personal Information
  • Terms
Made with ❤️in NYC © 2022 Codecademy