Please enable JavaScript to use CodeHS

MD 6-8: 7.AP.M.02

CodeHS Lessons

Create and use a function in a program to repeat instructions in order to organize code and make it easier to reuse.

Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
9.1 Functions Challenges
12.1 Breakout
Standard
9.1 Functions
9.2 Functions and Parameters
9.3 Namespaces in Functions
9.4 Functions and Return Values
25.14 Parameters
25.7 Functions
25.21 Putting Together Control Structures
Standard
9.14 Functions and Parameters 1
9.15 Functions and Parameters 2
9.16 Functions and Return Values 1
9.17 Functions and Return Values 2
Standard
13.3 Looping
Standard
1.6 Top Down Design and Decomposition in Karel
1.16 Challenge Problems
8.1 Functions Challenges
11.1 Breakout
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
9.1 Functions Challenges
12.1 Breakout
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
9.1 Functions Challenges
13.1 Breakout
Standard
2.2 A Day at the Park
5.3 Functions
5.4 Multiple Functions
5.5 For Loops
5.6 Conditional Statements
5.7 If/Else Statements
5.8 While Loops
5.9 Karel Challenges
Standard
2.2 A Day at the Park
Standard
1.3 Functions
1.4 Multiple Functions
1.5 For Loops
1.6 Conditional Statements
1.7 If/Else Statements
1.8 While Loops
1.9 Karel Challenges
Standard
3.3 Functions
5.6 Parameters
8.1 Putting Together Control Structures
Standard
3.3 Functions
5.6 Parameters
8.1 Putting Together Control Structures
Standard
2.4 Top Down Design and Decomposition in Karel
7.1 Challenge Problems
Standard
2.3 Karel Can't Turn Right
2.4 Functions in Karel
2.5 The Start Function
2.8 Super Karel
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
2.14 More Karel Examples and Testing
2.16 Karel Challenges
3.8 Functions
3.13 Parameters
3.19 Putting Together Control Structures
Standard
2.3 Karel Can't Turn Right
2.4 Functions in Karel
2.5 The Start Function
2.8 Super Karel
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
2.14 More Karel Examples and Testing
2.16 Karel Challenges
6.8 Functions
6.13 Parameters
6.19 Putting Together Control Structures
Standard
1.3 Karel Can't Turn Right
1.4 Functions in Karel
1.5 The Start Function
1.8 Super Karel
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
1.14 More Karel Examples and Testing
1.16 Karel Challenges
13.8 Functions
13.13 Parameters
13.19 Putting Together Control Structures
Standard
7.14 Functions
7.16 Namespaces in Functions
7.15 Functions and Parameters
7.17 Functions and Return Values
Standard
1.3 Karel Can't Turn Right
1.4 Functions in Karel
1.5 The Start Function
1.8 Super Karel
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
1.14 More Karel Examples and Testing
1.16 Karel Challenges
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
6.1 Functions
6.2 Functions and Parameters
6.3 Namespaces in Functions
6.4 Functions and Return Values
7.4 Functions
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
8.1 Functions and Parameters 1
8.2 Functions and Parameters 2
8.3 Functions and Parameters 3
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
9.1 Functions Challenges
10.4 Functions
13.1 Breakout
Standard
3.3 Functions
4.3 Parameters
7.5 Functions
8.1 Putting Together Control Structures
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges
11.1 Breakout
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges
11.1 Breakout
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
9.1 Functions Challenges
9.1 Functions Challenges
Standard
3.3 Functions
4.3 Parameters
6.1 Putting Together Control Structures
Standard
2.8 Functions
2.13 Parameters
2.19 Putting Together Control Structures
6.1 Functions
6.2 Functions and Parameters
6.3 Namespaces in Functions
6.4 Functions and Return Values
Standard
6.10 Functions and Parameters 1
6.11 Functions and Parameters 2
6.12 Functions and Return Values 1
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
10.1 Functions and Parameters 1
10.2 Functions and Parameters 2
10.3 Functions and Parameters 3
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
Standard
2.8 Functions
2.14 Parameters
2.22 Putting Together Control Structures
8.1 Functions
8.2 Functions and Parameters
8.3 Namespaces in Functions
8.4 Functions and Return Values
Standard
3.6 Top Down Design and Decomposition in Karel
4.2 Challenge Problems
10.1 Functions and Parameters 1
10.2 Functions and Parameters 2
10.3 Functions and Parameters 3
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
11.1 Functions and Parameters 1
11.2 Functions and Parameters 2
11.3 Functions and Parameters 3
11.4 Functions and Return Values 1
11.5 Functions and Return Values 2
Standard
3.8 Functions
3.13 Parameters
3.19 Putting Together Control Structures
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
17.1 Functions and Parameters 1
17.2 Functions and Parameters 2
17.3 Functions and Parameters 3
17.4 Functions and Return Values 1
17.5 Functions and Return Values 2
Standard
6.1 Functions
6.2 Functions and Parameters
6.3 Namespaces in Functions
6.4 Functions and Return Values
18.8 Functions
18.13 Parameters
18.19 Putting Together Control Structures
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
6.3 Karel Can't Turn Right
6.4 Functions in Karel
6.5 The Start Function
6.8 Super Karel
6.9 For Loops
6.10 If Statements
6.11 If/Else Statements
6.12 While Loops in Karel
6.13 Control Structures Example
6.14 More Karel Examples and Testing
6.16 Karel Challenges
9.5 Functions
Standard
1.6 Top Down Design and Decomposition in Karel
18.1 Challenge Problems
25.1 Functions Challenges
27.1 Breakout
Standard
2.2 A Day at the Park
Standard
1.3 Functions
1.4 Multiple Functions
1.5 For Loops
1.6 Conditional Statements
1.7 If/Else Statements
1.8 While Loops
1.9 Karel Challenges
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
12.1 Functions and Parameters 1
12.2 Functions and Parameters 2
12.3 Functions and Parameters 3
12.4 Functions and Return Values 1
12.5 Functions and Return Values 2
13.1 Functions Challenges
23.1 Breakout
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
12.1 Functions and Parameters 1
12.2 Functions and Parameters 2
12.3 Functions and Parameters 3
12.4 Functions and Return Values 1
12.5 Functions and Return Values 2
13.1 Functions Challenges
23.1 Breakout
Standard
5.1 Functions
5.2 Functions and Parameters
5.3 Namespaces in Functions
5.4 Functions and Return Values
Standard
1.6 Top Down Design and Decomposition in Karel
2.1 Challenge Problems
8.1 Functions and Parameters 1
8.2 Functions and Parameters 2
8.3 Functions and Parameters 3
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
9.1 Functions Challenges
12.1 Breakout
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
6.6 Functions
6.12 Parameters
7.13 Functions
Standard
8.6 Functions
8.12 Parameters
9.13 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
14.3 Karel Can't Turn Right
14.4 Functions in Karel
14.5 The Start Function
14.8 Super Karel
14.9 For Loops
14.10 If Statements
14.11 If/Else Statements
14.12 While Loops in Karel
14.13 Control Structures Example
14.14 More Karel Examples and Testing
14.16 Karel Challenges
6.5 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
3.8 Functions
3.13 Parameters
3.19 Putting Together Control Structures
8.3 Karel Can't Turn Right
8.4 Functions in Karel
8.5 The Start Function
8.8 Super Karel
8.9 For Loops
8.10 If Statements
8.11 If/Else Statements
8.12 While Loops in Karel
8.13 Control Structures Example
8.14 More Karel Examples and Testing
8.16 Karel Challenges
Standard
3.8 Functions
3.14 Parameters
3.20 Putting Together Control Structures
Standard
2.6 Top Down Design and Decomposition in Karel
15.1 Breakout
Standard
2.3 Functions
2.4 Multiple Functions
2.5 For Loops
2.6 Conditional Statements
2.7 If/Else Statements
2.8 While Loops
2.9 Karel Challenges
Standard
5.6 Top Down Design and Decomposition in Karel
12.1 Functions Challenges
Standard
2.6 Top Down Design and Decomposition in Karel
14.1 Challenge Problems
21.1 Functions Challenges
23.1 Breakout
Standard
1.9 Functions
1.14 Parameters
1.20 Putting Together Control Structures
Standard
1.9 Functions
1.14 Parameters
1.20 Putting Together Control Structures
Standard
10.3 Looping
Standard
1.6 Top Down Design and Decomposition in Karel
2.2 Challenge Problems
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
Standard
13.3 Looping
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
12.3 Karel Can't Turn Right
12.4 Functions in Karel
12.5 The Start Function
12.8 Super Karel
12.9 For Loops
12.10 If Statements
12.11 If/Else Statements
12.12 While Loops in Karel
12.13 Control Structures Example
12.14 More Karel Examples and Testing
12.16 Karel Challenges
14.5 Functions
Standard
8.1 Functions
8.2 Functions and Parameters
8.3 Namespaces in Functions
8.4 Functions and Return Values
16.14 Parameters
16.7 Functions
16.21 Putting Together Control Structures
Standard
8.1 Functions
8.2 Functions and Parameters
8.3 Namespaces in Functions
8.4 Functions and Return Values
16.14 Parameters
16.7 Functions
16.21 Putting Together Control Structures
Standard
3.6 Top Down Design and Decomposition in Karel
4.2 Challenge Problems
23.1 Functions and Parameters 1
23.1 Functions and Parameters 1
23.2 Functions and Parameters 2
23.2 Functions and Parameters 2
23.3 Functions and Parameters 3
23.3 Functions and Parameters 3
23.4 Functions and Return Values 1
23.4 Functions and Return Values 1
23.5 Functions and Return Values 2
23.5 Functions and Return Values 2
Standard
13.14 Functions and Parameters 1
13.15 Functions and Parameters 2
13.16 Functions and Return Values 1
13.17 Functions and Return Values 2
Standard
14.14 Functions and Parameters 1
14.15 Functions and Parameters 2
14.16 Functions and Return Values 1
14.17 Functions and Return Values 2
Standard
1.6 Top Down Design and Decomposition in Karel
Standard
4.6 Top Down Design and Decomposition in Karel
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
Standard
2.6 Top Down Design and Decomposition in Karel
3.1 Challenge Problems
12.1 Breakout
Standard
3.3 Functions
4.4 Parameters
6.1 Putting Together Control Structures
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
1.3 Functions
1.4 Multiple Functions
1.5 For Loops
1.6 Conditional Statements
1.7 If/Else Statements
1.8 While Loops
1.9 Karel Challenges
Standard
1.3 Functions
1.4 Multiple Functions
1.5 For Loops
1.6 Conditional Statements
1.7 If/Else Statements
1.8 While Loops
1.9 Karel Challenges
7.3 Functions
Standard
1.1 Functions
1.2 Functions and Parameters
1.3 Namespaces in Functions
1.4 Functions and Return Values
Standard
3.3 Functions
5.6 Parameters
8.1 Putting Together Control Structures
Standard
3.3 Functions
5.6 Parameters
8.1 Putting Together Control Structures
Standard
9.1 Functions
9.2 Functions and Parameters
9.3 Namespaces in Functions
9.4 Functions and Return Values
Standard
11.14 Parameters
11.7 Functions
11.21 Putting Together Control Structures
Standard
1.1 Functions
1.2 Functions and Parameters
1.3 Namespaces in Functions
1.4 Functions and Return Values
Standard
8.14 Functions and Parameters 1
8.15 Functions and Parameters 2
8.16 Functions and Return Values 1
8.17 Functions and Return Values 2
Standard
12.14 Functions and Parameters 1
12.15 Functions and Parameters 2
12.16 Functions and Return Values 1
12.17 Functions and Return Values 2
Standard
4.3 Looping
21.1 Challenge Problems
Standard
2.2 A Day at the Park
Standard
1.3 Functions
1.4 Multiple Functions
1.5 For Loops
1.6 Conditional Statements
1.7 If/Else Statements
1.8 While Loops
1.9 Karel Challenges
Standard
3.3 Functions
5.6 Parameters
8.1 Putting Together Control Structures
Standard
1.8 Functions
1.13 Parameters
1.19 Putting Together Control Structures
11.3 Karel Can't Turn Right
11.4 Functions in Karel
11.5 The Start Function
11.8 Super Karel
11.9 For Loops
11.10 If Statements
11.11 If/Else Statements
11.12 While Loops in Karel
11.13 Control Structures Example
11.14 More Karel Examples and Testing
11.16 Karel Challenges
14.5 Functions
Standard
2.6 Top Down Design and Decomposition in Karel
3.2 Challenge Problems
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2