Please enable JavaScript to use CodeHS

TN HS: CS.PC.4

CodeHS Lessons

Design and develop iterative programs that combine control structures, including nested loops and compound conditionals.

Standard
1.9 For Loops
1.10 If Statements and Conditionals
1.11 If/Else Statements
1.12 While Loops
1.14 Control Structures Example
6.2 If/Else Statements
6.5 Graphics and Conditionals
6.6 While Loops
6.7 The Break Statement
6.8 While Loops and Graphics
6.9 For Loops
6.10 For Loops and Graphics
7.1 Control Structures Challenges
Standard
7.4 Nested Control Structures
12.3 For Loops and Lists
25.21 Putting Together Control Structures
Standard
4.6 For Loops in JavaScript
4.7 General For Loops
4.8 For Loop Practice
4.10 While Loops
4.11 Loop and a Half
Standard
4.6 For Loops in Python
4.7 General For Loops
4.8 For Loop Practice
4.10 While Loops
4.11 Loop and a Half
Standard
9.8 If Statements
9.9 For Loops in JavaScript
9.12 While Loops
9.13 Loop and a Half
Standard
4.7 For Loops in JavaScript
4.8 General For Loops
4.9 For Loop Practice
4.11 While Loops
4.12 Loop and a Half
Standard
1.9 For Loops
1.10 If Statements and Conditionals
1.11 If/Else Statements
1.12 While Loops
1.14 Control Structures Example
5.2 If/Else Statements
5.5 Graphics and Conditionals
5.6 While Loops
5.7 The Break Statement
5.8 While Loops and Graphics
5.9 For Loops
5.10 For Loops and Graphics
6.1 Control Structures Challenges
Standard
1.9 For Loops
1.10 If Statements and Conditionals
1.11 If/Else Statements
1.12 While Loops
1.14 Control Structures Example
6.2 If/Else Statements
6.5 Graphics and Conditionals
6.6 While Loops
6.7 The Break Statement
6.8 While Loops and Graphics
6.9 For Loops
6.10 For Loops and Graphics
7.1 Control Structures Challenges
Standard
1.9 For Loops
1.10 If Statements and Conditionals
1.11 If/Else Statements
1.12 While Loops
1.14 Control Structures Example
6.2 If/Else Statements
6.5 Graphics and Conditionals
6.6 While Loops
6.7 The Break Statement
6.8 While Loops and Graphics
6.9 For Loops
6.10 For Loops and Graphics
7.1 Control Structures Challenges
Standard
8.1 Putting Together Control Structures
Standard
8.1 Putting Together Control Structures
Standard
4.4 If/Else Statements
Standard
3.3 For Loops
4.1 If Statements and Conditionals
4.2 If/Else Statements
5.1 While Loops
6.2 Control Structures Example
Standard
3.19 Putting Together Control Structures
Standard
6.19 Putting Together Control Structures
Standard
13.19 Putting Together Control Structures
Standard
7.13 Nested Control Structures
Standard
1.3 Conditional Statements
Standard
1.19 Putting Together Control Structures
5.4 Nested Control Structures
7.1 Loops
7.2 If/Else Statements
9.3 For Loops and Lists
12.1 Arduino Challenges
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
6.4 If Statements
6.5 For Loops in JavaScript
6.9 While Loops
6.10 Loop and a Half
7.1 Control Structures Challenges
10.1 Loops
10.2 If/Else Statements
14.1 Arduino Challenges
Standard
7.1 For Loops
7.4 If/Else Statements
8.1 Putting Together Control Structures
9.1 micro:bit Challenges
Standard
7.1 For Loops
7.4 If/Else Statements
10.1 micro:bit Challenges
Standard
2.1 For Loops
2.4 If/Else Statements
3.1 micro:bit Challenges
Standard
2.1 Loops
2.2 If/Else Statements
3.1 Arduino Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
4.1 Iteration
4.4 Nested Iteration
Standard
2.10 While Loops
2.12 Loop-and-a-Half
Standard
2.19 Putting Together Control Structures
5.4 Nested Control Structures
8.3 For Loops and Lists
Standard
6.8 If Statements
6.9 For Loops in JavaScript
Standard
6.1 Iteration
6.4 Nested Iteration
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
8.4 If Statements
8.5 For Loops in JavaScript
8.9 While Loops
8.10 Loop and a Half
9.1 Control Structures Challenges
Standard
2.22 Putting Together Control Structures
7.4 Nested Control Structures
10.3 For Loops and Lists
Standard
6.8 If Statements
6.9 For Loops in JavaScript
Standard
3.10 For Loops
3.11 If Statements
3.12 If/Else Statements
3.13 While Loops in Karel
3.14 Control Structures Example
8.4 If Statements
8.5 For Loops in JavaScript
8.9 While Loops
8.10 Loop and a Half
9.1 Control Structures Challenges
Standard
1.8 For Loops
1.11 If/Else Statements
1.13 micro:bit Challenges
Standard
8.1 Putting Together Control Structures
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
6.8 If Statements
6.9 For Loops in JavaScript
Standard
4.4 If/Else Statements
11.1 For Loops
11.4 If/Else Statements
12.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
9.4 If Statements
9.5 For Loops in JavaScript
9.9 While Loops
9.10 Loop and a Half
10.1 Control Structures Challenges
Standard
12.1 Loops
12.2 If/Else Statements
Standard
3.19 Putting Together Control Structures
Standard
2.10 For Loops
2.11 If Statements and Conditionals
2.12 If/Else Statements
2.13 While Loops
2.16 Control Structures Example
15.2 If/Else Statements
15.5 Graphics and Conditionals
15.9 For Loops
15.10 For Loops and Graphics
15.6 While Loops
15.7 The Break Statement
15.8 While Loops and Graphics
16.1 Control Structures Challenges
Standard
4.6 For Loops in JavaScript
4.7 General For Loops
4.8 For Loop Practice
4.10 While Loops
4.11 Loop and a Half
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
14.4 If Statements
14.5 For Loops in JavaScript
14.9 While Loops
14.10 Loop and a Half
15.1 Control Structures Challenges
Standard
5.4 Nested Control Structures
9.3 For Loops and Lists
18.19 Putting Together Control Structures
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
9.4 If/Else Statements
9.1 For Loops
10.1 micro:bit Challenges
Standard
7.4 Nested Control Structures
15.2 If/Else Statements
15.5 Graphics and Conditionals
15.9 For Loops
15.10 For Loops and Graphics
15.6 While Loops
15.7 The Break Statement
15.8 While Loops and Graphics
16.1 Control Structures Challenges
10.20 Putting Together Control Structures
Standard
1.9 For Loops
1.10 If Statements and Conditionals
1.11 If/Else Statements
1.12 While Loops
1.14 Control Structures Example
4.2 If/Else Statements
4.5 Graphics and Conditionals
4.6 While Loops
4.7 The Break Statement
4.8 While Loops and Graphics
4.9 For Loops
4.10 For Loops and Graphics
23.1 Control Structures Challenges
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
10.4 If Statements
10.5 For Loops in JavaScript
10.9 While Loops
10.10 Loop and a Half
11.1 Control Structures Challenges
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
10.4 If Statements
10.5 For Loops in JavaScript
10.9 While Loops
10.10 Loop and a Half
11.1 Control Structures Challenges
Standard
6.3 For Loops and Lists
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
6.4 If Statements
6.5 For Loops in JavaScript
6.9 While Loops
6.10 Loop and a Half
7.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
8.11 While Loops
8.12 For Loops
8.8 If/Else Statements
Standard
12.8 If/Else Statements
12.12 For Loops
12.11 While Loops
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
3.5 For Loops in JavaScript
3.6 General For Loops
3.7 For Loop Practice
3.9 While Loops
3.10 Loop and a Half
Standard
3.5 For Loops in JavaScript
3.6 General For Loops
3.7 For Loop Practice
3.9 While Loops
3.10 Loop and a Half
Standard
1.19 Putting Together Control Structures
6.4 If/Else Statements
6.1 For Loops
7.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
3.19 Putting Together Control Structures
Standard
3.20 Putting Together Control Structures
Standard
2.10 For Loops
2.11 If Statements and Conditionals
2.12 If/Else Statements
2.13 While Loops
2.15 Control Structures Example
7.2 If/Else Statements
7.5 Graphics and Conditionals
7.6 While Loops
7.7 The Break Statement
7.8 While Loops and Graphics
7.9 For Loops
7.10 For Loops and Graphics
Standard
5.9 For Loops
5.10 If Statements and Conditionals
5.11 If/Else Statements
5.12 While Loops
5.14 Control Structures Example
9.2 If/Else Statements
9.5 Graphics and Conditionals
9.6 While Loops
9.7 The Break Statement
9.8 While Loops and Graphics
9.9 For Loops
9.10 For Loops and Graphics
10.1 Control Structures Challenges
Standard
2.9 For Loops
2.10 If Statements and Conditionals
2.11 If/Else Statements
2.12 While Loops
2.14 Control Structures Example
6.2 If/Else Statements
6.5 Graphics and Conditionals
6.6 While Loops
6.7 The Break Statement
6.8 While Loops and Graphics
6.9 For Loops
6.10 For Loops and Graphics
11.4 For Loops
19.1 Control Structures Challenges
Standard
1.20 Putting Together Control Structures
Standard
1.20 Putting Together Control Structures
Standard
1.10 For Loops
1.11 If Statements
1.12 If/Else Statements
1.13 While Loops in Karel
1.14 Control Structures Example
5.4 If Statements
5.5 For Loops in JavaScript
5.9 While Loops
5.10 Loop and a Half
6.1 Control Structures Challenges
Standard
2.5 For Loops in Python
2.6 General For Loops
2.7 For Loop Practice
2.9 While Loops
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
3.6 For Loops in Python
3.7 General For Loops
3.8 For Loop Practice
3.10 While Loops
3.11 Loop and a Half
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
7.4 Nested Control Structures
16.21 Putting Together Control Structures
Standard
2.6 For Loops in Python
2.7 General For Loops
2.8 For Loop Practice
2.10 While Loops
2.11 Loop and a Half
Standard
7.4 Nested Control Structures
16.21 Putting Together Control Structures
Standard
2.6 For Loops in Python
2.7 General For Loops
2.8 For Loop Practice
2.10 While Loops
2.11 Loop and a Half
Standard
3.10 For Loops
3.11 If Statements
3.12 If/Else Statements
3.13 While Loops in Karel
3.14 Control Structures Example
13.4 If Statements
13.5 For Loops in JavaScript
13.9 While Loops
13.10 Loop and a Half
14.1 Control Structures Challenges
Standard
13.8 If Statements
13.9 For Loops in JavaScript
13.12 While Loops
13.13 Loop and a Half
Standard
14.8 If Statements
14.9 For Loops in JavaScript
14.12 While Loops
14.13 Loop and a Half
Standard
6.2 If/Else Statements
6.5 Graphics and Conditionals
6.6 While Loops
6.7 The Break Statement
6.8 While Loops and Graphics
6.9 For Loops
6.10 For Loops and Graphics
17.9 For Loops
17.10 If Statements and Conditionals
17.11 If/Else Statements
17.12 While Loops
17.14 Control Structures Example
14.1 Control Structures Challenges
Standard
4.10 For Loops
4.11 If Statements
4.12 If/Else Statements
4.13 While Loops in Karel
4.14 Control Structures Example
6.4 If Statements
6.5 For Loops in JavaScript
6.9 While Loops
6.10 Loop and a Half
Standard
4.11 While Loops
4.13 Loop-and-a-Half
Standard
2.9 For Loops
2.10 If Statements and Conditionals
2.11 If/Else Statements
2.12 While Loops
2.15 Control Structures Example
8.2 If/Else Statements
8.5 Graphics and Conditionals
8.6 While Loops
8.7 The Break Statement
8.8 While Loops and Graphics
8.9 For Loops
8.10 For Loops and Graphics
9.1 Control Structures Challenges
Standard
6.1 Putting Together Control Structures
Standard
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.19 Putting Together Control Structures
14.4 If/Else Statements
14.1 For Loops
15.1 micro:bit Challenges
Standard
10.1 Iteration
10.4 Nested Iteration
Standard
10.1 Iteration
10.4 Nested Iteration
Standard
3.5 For Loops
7.2 If/Else Statements
8.1 micro:bit Challenges
Standard
6.4 Nested Control Structures
Standard
4.3 For Loops and Lists
Standard
4.4 If/Else Statements
Standard
8.1 Putting Together Control Structures
Standard
8.1 Putting Together Control Structures
Standard
6.4 Nested Control Structures
12.3 For Loops and Lists
Standard
6.4 Nested Control Structures
11.21 Putting Together Control Structures
Standard
4.3 For Loops and Lists
Standard
8.8 If Statements
8.9 For Loops in JavaScript
8.12 While Loops
8.13 Loop and a Half
Standard
12.8 If Statements
12.9 For Loops in JavaScript
12.12 While Loops
12.13 Loop and a Half