Please enable JavaScript to use CodeHS

MTA Python: 5.1

CodeHS Lessons

Analyze, detect, and fix code segments that have errors.

Standard
3.1 Printing in Python
3.2 Variables and Types
3.5 String Operators
5.1 Booleans
5.2 If Statements
9.3 Namespaces in Functions
25.21 Putting Together Control Structures
25.7 Functions
25.20 While Loops
25.19 If/Else Statements
25.18 If Statements
25.17 Extended Loop Control
25.16 Using i in For Loops
25.14 Parameters
25.13 User Input
25.10 Variables
25.8 Artistic Effects
25.5 Turning Tracy Using Angles
25.4 For Loops
25.3 Turning Tracy
25.2 Tracy's Grid World
25.1 Meet Tracy the Turtle
Standard
1.1 Intro to Python with Tracy the Turtle
1.3 Tracy's Grid World
2.2 Turning Tracy
2.3 For Loops
2.4 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.6 Top Down Design
5.1 Variables
5.5 User Input
5.6 Parameters
5.9 Using i in For Loops
5.10 Extended Loop Control
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.3 Tracy's Grid World
2.2 Turning Tracy
2.3 For Loops
2.4 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.6 Top Down Design
5.1 Variables
5.5 User Input
5.6 Parameters
5.9 Using i in For Loops
5.10 Extended Loop Control
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
3.1 Intro to Python with Tracy the Turtle
3.2 Tracy's Grid World
3.3 Turning Tracy
3.4 For Loops
3.5 Turning Tracy Using Angles
3.8 Functions
3.9 Artistic Effects
3.10 Top Down Design
3.11 Variables
3.12 User Input
3.13 Parameters
3.14 Using i in For Loops
3.15 Extended Loop Control
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
6.11 Variables
6.19 Putting Together Control Structures
6.18 While Loops
6.17 If/ Else Statements
6.16 If Statements
6.15 Extended Loop Control
6.14 Using i in For Loops
6.13 Parameters
6.12 User Input
6.1 Intro to Python with Tracy the Turtle
6.10 Top Down Design
6.9 Artistic Effects
6.8 Functions
6.5 Turning Tracy Using Angles
6.4 For Loops
6.3 Turning Tracy
6.2 Tracy's Grid World
Standard
13.11 Variables
13.19 Putting Together Control Structures
13.18 While Loops
13.17 If/ Else Statements
13.16 If Statements
13.15 Extended Loop Control
13.14 Using i in For Loops
13.13 Parameters
13.12 User Input
13.1 Intro to Python with Tracy the Turtle
13.10 Top Down Design
13.9 Artistic Effects
13.8 Functions
13.5 Turning Tracy Using Angles
13.4 For Loops
13.3 Turning Tracy
13.2 Tracy's Grid World
Standard
7.5 String Operators
7.16 Namespaces in Functions
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
2.1 Printing in Python
2.2 Variables and Types
2.5 String Operators
4.1 Booleans
4.2 If Statements
6.3 Namespaces in Functions
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
2.1 Turning Tracy
2.2 For Loops
2.3 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.5 Top Down Design
4.1 Variables
4.2 User Input
4.3 Parameters
4.4 Using i in For Loops
4.5 Extended Loop Control
6.1 If Statements
6.2 If/ Else Statements
6.3 While Loops
8.1 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
2.1 Turning Tracy
2.2 For Loops
2.3 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.5 Top Down Design
4.1 Variables
4.2 User Input
4.3 Parameters
4.4 Using i in For Loops
4.5 Extended Loop Control
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
2.1 Intro to Python with Tracy the Turtle
2.2 Tracy's Grid World
2.3 Turning Tracy
2.4 For Loops
2.5 Turning Tracy Using Angles
2.8 Functions
2.9 Artistic Effects
2.10 Top Down Design
2.11 Variables
2.12 User Input
2.13 Parameters
2.14 Using i in For Loops
2.15 Extended Loop Control
2.16 If Statements
2.17 If/ Else Statements
2.18 While Loops
2.19 Putting Together Control Structures
3.1 Printing in Python
3.2 Variables and Types
3.5 String Operators
4.1 Booleans
4.2 If Statements
6.3 Namespaces in Functions
Standard
2.1 Intro to Python with Tracy the Turtle
2.2 Tracy's Grid World
2.3 Turning Tracy
2.4 For Loops
2.5 Turning Tracy Using Angles
2.8 Functions
2.9 Artistic Effects
2.10 Top Down Design
2.12 Variables
2.13 User Input
2.14 Parameters
2.16 Using i in For Loops
2.17 Extended Loop Control
2.18 If Statements
2.19 If/ Else Statements
2.20 While Loops
2.22 Putting Together Control Structures
5.1 Printing in Python
5.2 Variables and Types
5.5 String Operators
6.1 Booleans
6.2 If Statements
8.3 Namespaces in Functions
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
3.1 Intro to Python with Tracy the Turtle
3.2 Tracy's Grid World
3.3 Turning Tracy
3.4 For Loops
3.5 Turning Tracy Using Angles
3.8 Functions
3.9 Artistic Effects
3.10 Top Down Design
3.11 Variables
3.12 User Input
3.13 Parameters
3.14 Using i in For Loops
3.15 Extended Loop Control
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
3.2 Printing in Python
3.3 Variables and Types
3.6 String Operators
4.1 Booleans
4.2 If Statements
6.3 Namespaces in Functions
18.14 Using i in For Loops
18.19 Putting Together Control Structures
18.18 While Loops
18.17 If/ Else Statements
18.16 If Statements
18.15 Extended Loop Control
18.1 Intro to Python with Tracy the Turtle
18.13 Parameters
18.12 User Input
18.11 Variables
18.10 Top Down Design
18.9 Artistic Effects
18.8 Functions
18.5 Turning Tracy Using Angles
18.4 For Loops
18.3 Turning Tracy
18.2 Tracy's Grid World
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
4.2 Printing in Python
4.3 Variables and Types
4.6 String Operators
5.3 Namespaces in Functions
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
6.1 Intro to Python with Tracy the Turtle
6.2 Tracy's Grid World
6.3 Turning Tracy
6.4 For Loops
6.5 Turning Tracy Using Angles
6.6 Functions
6.7 Artistic Effects
6.8 Top Down Design
6.10 Variables
6.11 User Input
6.12 Parameters
6.13 If Statements
6.14 If/ Else Statements
6.15 While Loops
7.1 Printing in Python
7.2 Variables and Types
7.5 String Operators
7.6 Booleans
7.7 If Statements
Standard
8.1 Intro to Python with Tracy the Turtle
8.2 Tracy's Grid World
8.3 Turning Tracy
8.4 For Loops
8.5 Turning Tracy Using Angles
8.6 Functions
8.7 Artistic Effects
8.8 Top Down Design
8.10 Variables
8.11 User Input
8.12 Parameters
8.13 If Statements
8.14 If/ Else Statements
8.15 While Loops
9.1 Printing in Python
9.2 Variables and Types
9.5 String Operators
9.6 Booleans
9.7 If Statements
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
3.1 Intro to Python with Tracy the Turtle
3.2 Tracy's Grid World
3.3 Turning Tracy
3.4 For Loops
3.5 Turning Tracy Using Angles
3.8 Functions
3.9 Artistic Effects
3.10 Top Down Design
3.11 Variables
3.12 User Input
3.13 Parameters
3.14 Using i in For Loops
3.15 Extended Loop Control
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
3.1 Intro to Python with Tracy the Turtle
3.2 Tracy's Grid World
3.3 Turning Tracy
3.4 For Loops
3.5 Turning Tracy Using Angles
3.8 Functions
3.9 Artistic Effects
3.10 Top Down Design
3.12 Variables
3.13 User Input
3.14 Parameters
3.15 Using i in For Loops
3.16 Extended Loop Control
3.17 If Statements
3.18 If/ Else Statements
3.19 While Loops
3.20 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.4 Turning Tracy
1.5 For Loops
1.6 Turning Tracy Using Angles
1.9 Functions
1.10 Artistic Effects
1.11 Top Down Design
1.12 Variables
1.13 User Input
1.14 Parameters
1.15 Using i in For Loops
1.16 Extended Loop Control
1.17 If Statements
1.18 If/ Else Statements
1.19 While Loops
1.20 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.4 Turning Tracy
1.5 For Loops
1.6 Turning Tracy Using Angles
1.9 Functions
1.10 Artistic Effects
1.11 Top Down Design
1.12 Variables
1.13 User Input
1.14 Parameters
1.15 Using i in For Loops
1.16 Extended Loop Control
1.17 If Statements
1.18 If/ Else Statements
1.19 While Loops
1.20 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
4.1 Printing in Python
4.2 Variables and Types
4.5 String Operators
6.1 Booleans
6.2 If Statements
8.3 Namespaces in Functions
16.21 Putting Together Control Structures
16.7 Functions
16.20 While Loops
16.19 If/Else Statements
16.18 If Statements
16.17 Extended Loop Control
16.16 Using i in For Loops
16.14 Parameters
16.13 User Input
16.10 Variables
16.8 Artistic Effects
16.5 Turning Tracy Using Angles
16.4 For Loops
16.3 Turning Tracy
16.2 Tracy's Grid World
16.1 Meet Tracy the Turtle
Standard
4.1 Printing in Python
4.2 Variables and Types
4.5 String Operators
6.1 Booleans
6.2 If Statements
8.3 Namespaces in Functions
16.21 Putting Together Control Structures
16.7 Functions
16.20 While Loops
16.19 If/Else Statements
16.18 If Statements
16.17 Extended Loop Control
16.16 Using i in For Loops
16.14 Parameters
16.13 User Input
16.10 Variables
16.8 Artistic Effects
16.5 Turning Tracy Using Angles
16.4 For Loops
16.3 Turning Tracy
16.2 Tracy's Grid World
16.1 Meet Tracy the Turtle
Standard
1.2 Intro to Python with Tracy the Turtle
1.3 Tracy's Grid World
2.1 Turning Tracy
2.2 For Loops
2.3 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.5 Top Down Design
4.2 Variables
4.3 User Input
4.4 Parameters
4.6 Using i in For Loops
4.7 Extended Loop Control
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
Standard
2.1 Printing in Python
2.2 Variables and Types
2.5 String Operators
4.1 Booleans
4.2 If Statements
Standard
1.3 Namespaces in Functions
Standard
1.1 Intro to Python with Tracy the Turtle
1.3 Tracy's Grid World
2.2 Turning Tracy
2.3 For Loops
2.4 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.6 Top Down Design
5.1 Variables
5.5 User Input
5.6 Parameters
5.9 Using i in For Loops
5.10 Extended Loop Control
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.3 Tracy's Grid World
2.2 Turning Tracy
2.3 For Loops
2.4 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.6 Top Down Design
5.1 Variables
5.5 User Input
5.6 Parameters
5.9 Using i in For Loops
5.10 Extended Loop Control
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
2.1 Printing in Python
2.2 Variables and Types
2.5 String Operators
4.1 Booleans
4.2 If Statements
9.3 Namespaces in Functions
Standard
2.1 Printing in Python
2.2 Variables and Types
2.5 String Operators
4.1 Booleans
4.2 If Statements
11.21 Putting Together Control Structures
11.7 Functions
11.20 While Loops
11.19 If/Else Statements
11.18 If Statements
11.17 Extended Loop Control
11.16 Using i in For Loops
11.14 Parameters
11.13 User Input
11.10 Variables
11.8 Artistic Effects
11.5 Turning Tracy Using Angles
11.4 For Loops
11.3 Turning Tracy
11.2 Tracy's Grid World
11.1 Meet Tracy the Turtle
Standard
1.3 Namespaces in Functions
Standard
1.1 Intro to Python with Tracy the Turtle
1.3 Tracy's Grid World
2.2 Turning Tracy
2.3 For Loops
2.4 Turning Tracy Using Angles
3.3 Functions
3.4 Artistic Effects
3.6 Top Down Design
5.1 Variables
5.5 User Input
5.6 Parameters
5.9 Using i in For Loops
5.10 Extended Loop Control
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
1.1 Intro to Python with Tracy the Turtle
1.2 Tracy's Grid World
1.3 Turning Tracy
1.4 For Loops
1.5 Turning Tracy Using Angles
1.8 Functions
1.9 Artistic Effects
1.10 Top Down Design
1.11 Variables
1.12 User Input
1.13 Parameters
1.14 Using i in For Loops
1.15 Extended Loop Control
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures