---
title: Control Structures
description: Control structures direct the execution flow of a computer program based on specified conditions. Learners will understand how to implement decision-making statements, loops, and exception handling to control program logic and build dynamic software applications.
category: programming-tech
subcategory: programming-fundamentals
difficulty: beginner, intermediate, advanced
url: /subject/control-structures
---

# Control Structures

Control structures direct the execution flow of a computer program based on specified conditions. Learners will understand how to implement decision-making statements, loops, and exception handling to control program logic and build dynamic software applications.

## Available Resources

1 Videos • 1 Books • 2 Courses • 2 Websites

## Courses

### 1. JavaScript Algorithms and Data Structures

Master JavaScript algorithms and data structures with this free course! Build a strong foundation for web development.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/

**Tags:** javascript, algorithms, data-structures, freecodecamp

### 2. Programming for Everybody (Getting Started with Python)

This course aims to teach everyone the basics of programming computers using Python. We cover the basics of how one constructs a program from a series of simple instructions in Python.  The course has no pre-requisites and avoids all but the simplest mathematics. Anyone with moderate computer experience should be able to master the materials in this course. This course will cover Chapters 1-5 of the textbook “Python for Everybody”.  Once a student completes this course, they will be ready to take more advanced programming courses. This course covers Python 3.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.coursera.org/learn/python

**Tags:** python, programming-basics, conditionals, loops, functions

## Websites

### 1. GeeksforGeeks - Control Structures

Detailed explanations with examples in C++/Java/Python.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.geeksforgeeks.org/control-structures-in-programming-languages/

### 2. learncpp.com

LearnCpp.com is a free, comprehensive C++ tutorial site with clear explanations and numerous code examples. It covers core language concepts, including control structures, syntax, data types, functions, classes, templates, and the standard library.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://learncpp.com

**Tags:** websites, technology-computer-science, programming-fundamentals

## Videos

### 1. Learn Python - Full Course for Beginners [Tutorial]

A 4.5-hour freeCodeCamp beginner Python course taught by Mike Dane, whose if-statement, while-loop, and for-loop sections cover control flow. Viewers learn to write conditional branches, comparisons, and loops, and combine them into small working programs.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.youtube.com/watch?v=rfscVS0vtbw

**Tags:** python, control-flow, conditionals, loops, programming-basics

## Books

### 1. Think Python

**Author:** Allen B. Downey

Allen Downey's introduction to programming and computational thinking in Python; this ISBN is the Cambridge University Press edition titled Python for Software Design. It covers functions, conditionals, recursion, iteration, and data structures, teaching beginners to design and debug small programs.

**Difficulty:** Intermediate | **Language:** English | **Price:** Paid

**Link:** https://www.amazon.com/dp/0521725968?tag=edmonddante07-20

**Tags:** books, technology-computer-science, programming-fundamentals

---

*This content is part of Dantes.io - Your Treasure Map to Knowledge*

*Curated by humans at Dantes.io. Personal study use welcome; republishing this curation requires permission (team@dantes.io).*

View this page online: https://dantes.io/subject/control-structures