### Please enable JavaScript to use CodeHS

Introduction to Computer Science in Python

#### Outline

1. Welcome
1.1 Welcome
Video 1.1.1 Welcome
Free Response 1.1.2 Welcome
Video 1.1.3 Course Content Overview
2. Introduction to Programming with Turtle Graphics
2.1 Intro to Python with Tracy the Turtle
Video 2.1.1 Intro to Tracy
Check for Understanding 2.1.2 Intro to Tracy
Example 2.1.3 Slinky
Exercise 2.1.4 Stretched Slinky
2.2 Tracy's Grid World
Video 2.2.1 Tracy's Grid World
Check for Understanding 2.2.2 Tracy's Grid World
Example 2.2.3 Dashed Line
Exercise 2.2.4 Shorter Dashed Line
Exercise 2.2.5 Caterpillar
Badge 2.2.6 Grid World Badge
2.3 Turning Tracy
Video 2.3.1 Turning Tracy
Check for Understanding 2.3.2 Turning Tracy
Example 2.3.3 Square
Example 2.3.4 X and Y Axes
Exercise 2.3.5 Rectangle
Exercise 2.3.6 4 Columns
2.4 For Loops
Video 2.4.1 For Loops
Check for Understanding 2.4.2 For Loops
Example 2.4.3 Square Using Loops
Example 2.4.4 Dotted Line
Exercise 2.4.5 Row of Circles
Exercise 2.4.6 4 Columns 2.0
Badge 2.4.7 Looping Badge
2.5 Turning Tracy Using Angles
Video 2.5.1 Turning Tracy Using Angles
Check for Understanding 2.5.2 Turning Tracy Using Angles
Example 2.5.3 Asterisk
Example 2.5.4 Four Circles
Exercise 2.5.5 Hexagon
Exercise 2.5.6 'X' Marks the Spot
Exercise 2.5.7 Circle Pyramid
2.6 Comments
Video 2.6.1 Comments
Check for Understanding 2.6.2 Comments
Example 2.6.3 Four Circles with Comments
Exercise 2.6.4 Circle Pyramid with Comments
2.7 Naming Guidelines
Video 2.7.1 Naming Guidelines
Check for Understanding 2.7.2 Naming Guidelines
2.8 Functions
Video 2.8.1 Functions
Check for Understanding 2.8.2 Functions
Example 2.8.3 X and Y Axes with Hash Marks
Exercise 2.8.4 Beaded Bracelet
Exercise 2.8.5 Shape Stack
Badge 2.8.6 Functions Badge
2.9 Artistic Effects
Video 2.9.1 Artistic Effects
Check for Understanding 2.9.2 Artistic Effects
Example 2.9.3 Rainbow Octagon
Example 2.9.4 Circle Square Triangle
Exercise 2.9.5 Four Colored Triangles
Exercise 2.9.6 Colorful Bracelet
Challenge 2.9.7 Kid's Shapes Toy
2.10 Top Down Design
Video 2.10.1 Top Down Design
Check for Understanding 2.10.2 Top Down Design
Example 2.10.3 Bubble Wrap
Exercise 2.10.4 Bubble Wrap 2.0
Exercise 2.10.5 Sidewalk
2.11 Variables
Video 2.11.1 Variables
Check for Understanding 2.11.2 Variables
Example 2.11.3 Increasing Length
Exercise 2.11.4 Dartboard
Exercise 2.11.5 Line of Increasing Blocks
2.12 User Input
Video 2.12.1 User Input
Check for Understanding 2.12.2 User Input
Example 2.12.3 Color Coded Increasing Length
Exercise 2.12.4 Colored Dartboard
Exercise 2.12.5 Four Corners
Badge 2.12.6 User Input Badge
2.13 Parameters
Video 2.13.1 Parameters
Check for Understanding 2.13.2 Parameters
Example 2.13.3 Concentric Circles
Exercise 2.13.4 Colorful Caterpillar
Exercise 2.13.5 Circle in a Square
Exercise 2.13.6 Snowman
2.14 Using i in For Loops
Video 2.14.1 Using i in For Loops
Check for Understanding 2.14.2 Using i in For Loops
Example 2.14.3 Geometry
Exercise 2.14.4 Geometry 2.0
2.15 Extended Loop Control
Video 2.15.1 Extended Loop Control
Check for Understanding 2.15.2 Extended Loop Control
Example 2.15.3 Square Swirl
Exercise 2.15.4 Dartboard using i
Exercise 2.15.5 Phone Signal
Badge 2.15.6 Master of i Badge
2.16 If Statements
Video 2.16.1 If Statements
Check for Understanding 2.16.2 If Statements
Example 2.16.3 X and Y Axis with Bolded Marks
Exercise 2.16.4 Happy Face
Exercise 2.16.5 Black and White Squares
2.17 If/ Else Statements
Video 2.17.1 If/Else Statements
Check for Understanding 2.17.2 If/Else Statements
Example 2.17.3 Positive, Negative, Zero
Exercise 2.17.4 Rating
Exercise 2.17.5 Happy/ Sad Face
2.18 While Loops
Video 2.18.1 While Loops
Check for Understanding 2.18.2 While Loops
Example 2.18.3 Increasing Circles
Exercise 2.18.4 Increasing Squares
Exercise 2.18.5 Guess a Number
Badge 2.18.6 Conditionals Badge
Survey 2.18.7 Mindset Survey 1
2.19 Putting Together Control Structures
Video 2.19.1 Putting Together Control Structures
Check for Understanding 2.19.2 Putting Together Control Structures
Example 2.19.3 Block Pyramid
Exercise 2.19.4 Guess a Number 2.0
Exercise 2.19.5 Circle Pyramid 2.0
Challenge 2.19.6 Checkerboard
Badge 2.19.7 Tracy the Turtle Badge
2.20 Intro to Programming with Turtle Graphics Quiz
Quiz 2.20.1 Putting It All Together Quiz
Badge 2.20.2 Intro to Programming with Turtle Graphics Badge
3. Basic Python and Console Interaction
3.1 Printing in Python
Video 3.1.1 Printing in Python
Check for Understanding 3.1.2 Printing in Python
Example 3.1.3 Hello, world!
Example 3.1.4 Printing Multiple Lines
Exercise 3.1.5 Introduce Yourself
Debugging 3.1.6 Fix This Program!
Exercise 3.1.7 Vertical name
3.2 Variables and Types
Video 3.2.1 Variables and Types
Check for Understanding 3.2.2 Variables and Types
Example 3.2.3 Variables in Action
Example 3.2.4 Variable Types
Example 3.2.5 Variable Naming
Exercise 3.2.6 Make Some Variables!
Debugging 3.2.7 Undefined Variables
Badge 3.2.8 Variables Badge
3.3 User Input
Video 3.3.1 User Input
Check for Understanding 3.3.2 User Input
Example 3.3.3 Basic User Input
Example 3.3.4 Type Conversion
Example 3.3.5 Type Conversion, Part 2
Exercise 3.3.6 Hello <name>
Exercise 3.3.7 Age
3.4 Mathematical Operators
Video 3.4.1 Mathematical Operators
Check for Understanding 3.4.2 Mathematical Operators
Example 3.4.3 Operators and Integers
Example 3.4.4 Operator Precedence
Exercise 3.4.5 Add Parentheses
Example 3.4.6 Division in Python
Example 3.4.7 Operators and Floats
Exercise 3.4.8 Rectangle
3.5 String Operators
Video 3.5.1 String Operators
Check for Understanding 3.5.2 String Operators
Example 3.5.3 Operators and Strings
Debugging 3.5.4 Fix This Program
Example 3.5.5 Team Sizes
Exercise 3.5.6 Introduce Yourself, Part 2
Exercise 3.5.7 Rectangle, Part 2
Exercise 3.5.8 Rectangle, Part 3
Challenge 3.5.9 Recipe
3.6 Comments
Video 3.6.1 Comments
Check for Understanding 3.6.2 Comments
Example 3.6.3 Commented Program
Example 3.6.4 Trapezoid
Exercise 3.6.5 Add Comments!
3.7 Basic Python and Console Interaction Quiz
Unit Quiz 3.7.1 Basic Python and Console Interaction Quiz
Badge 3.7.2 Basic Python and Console Interaction Badge
4. Conditionals
4.1 Booleans
Video 4.1.1 Booleans
Check for Understanding 4.1.2 Booleans
Example 4.1.3 Boolean Variables
Debugging 4.1.4 Fix This Program
Exercise 4.1.5 Plants
4.2 If Statements
Video 4.2.1 If Statements
Check for Understanding 4.2.2 If Statements
Example 4.2.3 Your First If Statement
Example 4.2.4 If/Else Statement
Debugging 4.2.5 Fix This Program
Exercise 4.2.6 Is It Raining?
Badge 4.2.7 Conditional Badge
4.3 Comparison Operators
Video 4.3.1 Comparison Operators
Check for Understanding 4.3.2 Comparison Operators
Example 4.3.3 Comparison Operators
Example 4.3.4 High Jump
Example 4.3.5 Roller Coaster
Exercise 4.3.6 Old Enough to Vote?
Exercise 4.3.7 Positive, Zero, or Negative?
Example 4.3.8 Age Group
Exercise 4.3.9 Table Reservation
Challenge 4.3.10 Transaction
4.4 Logical Operators
Video 4.4.1 Logical Operators
Check for Understanding 4.4.2 Logical Operators
Example 4.4.3 Logical Operators
Exercise 4.4.4 Administrators, Teachers, and Students
Exercise 4.4.5 Presidential Eligibility
Challenge 4.4.6 Presidential Eligibility- Extended
4.5 Floating Point Numbers and Rounding
Video 4.5.1 Floating Point Numbers and Rounding
Check for Understanding 4.5.2 Floating Point Numbers and Rounding
Example 4.5.3 Rounding Error
Exercise 4.5.4 Correct Portion
4.6 Conditionals Quiz
Unit Quiz 4.6.1 Conditionals Quiz
5. Looping
5.1 While Loops
Video 5.1.1 While Loops
Check for Understanding 5.1.2 While Loops
Example 5.1.3 Guess My Number
Example 5.1.4 Program Tracing
Example 5.1.5 Program Tracing, Part 2
Exercise 5.1.6 2 Through 20 Even
Exercise 5.1.7 Divisibility
5.2 For Loops
Video 5.2.1 For Loops
Check for Understanding 5.2.2 For Loops
Example 5.2.3 Print 10 Numbers
Example 5.2.4 1 Through 10, Part 2
Exercise 5.2.5 Counting 10 to 100 by Tens
Example 5.2.6 Running Total
Example 5.2.7 Running Total, Part 2
Exercise 5.2.8 Average Test Score
Exercise 5.2.9 How Many Names?
Badge 5.2.10 Loops Badge
Survey 5.2.11 Mindset Survey 2
5.3 Break and Continue
Video 5.3.1 Break and Continue
Check for Understanding 5.3.2 Break and Continue
Example 5.3.3 Break
Example 5.3.4 Continue
Example 5.3.5 Bike Frame Size
Example 5.3.6 Loop and a Half
Exercise 5.3.7 Higher/ Lower
Challenge 5.3.8 Higher / Lower 2.0
5.4 Nested Control Structures
Video 5.4.1 Nested Control Structures
Check for Understanding 5.4.2 Nested Control Structures
Example 5.4.3 Double For Loop
Example 5.4.4 Average Test Score, Part 2
Example 5.4.5 For Loop + While Loop
Exercise 5.4.6 Rolling Dice
Exercise 5.4.7 Categories
5.5 Looping Quiz
Unit Quiz 5.5.1 Looping Unit Test
6. Functions and Exceptions
6.1 Functions
Video 6.1.1 Functions
Check for Understanding 6.1.2 Functions
Example 6.1.3 Greeting
Example 6.1.4 Extended Greeting
Exercise 6.1.5 Weather
6.2 Functions and Parameters
Video 6.2.1 Functions and Parameters
Check for Understanding 6.2.2 Functions and Parameters
Example 6.2.3 Print a Value
Example 6.2.4 Name and Age
Exercise 6.2.5 Print Product
Exercise 6.2.6 Print Multiple Times
Example 6.2.7 Default Parameter Values
Exercise 6.2.8 Area of a Square with Default Parameters
6.3 Namespaces in Functions
Video 6.3.1 Namespaces in Functions
Check for Understanding 6.3.2 Namespaces in Functions
Example 6.3.3 Functions and Variables
Example 6.3.4 Functions and Variables, Part 2
Debugging 6.3.5 Fix This Program!
Exercise 6.3.6 Adding to a Value
Exercise 6.3.7 Add, Subtract, or Multiply
6.4 Functions and Return Values
Video 6.4.1 Functions and Return Values
Check for Understanding 6.4.2 Functions and Return Values
Example 6.4.3 Return 10
Exercise 6.4.4 Add One
Example 6.4.5 Negate
Example 6.4.6 Functions Calling Functions
Example 6.4.7 Function Calls As Parameters
Exercise 6.4.8 Sum Two Numbers
Exercise 6.4.9 Temperature Converter
Badge 6.4.10 Functions Badge
6.5 Exceptions
Video 6.5.1 Exceptions
Check for Understanding 6.5.2 Exceptions
Example 6.5.3 Enter a Number
Example 6.5.4 Enter Name and Age
Exercise 6.5.5 Temperature Converter, Part 2
Exercise 6.5.6 Enter a Positive Number
6.6 Functions Quiz
Unit Quiz 6.6.1 Functions and Exceptions Quiz
Badge 6.6.2 Control Flow Badge
7. Strings
7.1 Indexing
Video 7.1.1 Indexing
Check for Understanding 7.1.2 Indexing
Example 7.1.3 Characters in a String
Video 7.1.4 Unit Tests
Practice 7.1.5 Initials
Practice 7.1.6 Sandwich Sandwiches
7.2 Slicing
Video 7.2.1 Slicing
Check for Understanding 7.2.2 Slicing
Example 7.2.3 Groups of Characters
Example 7.2.4 String Collage
Example 7.2.5 Room Names
Practice 7.2.6 If You're Not First, You're Last
Practice 7.2.7 Part 1, Replace a Letter
Practice 7.2.8 Part 2, Replace a Letter
Badge 7.2.9 Slicing Badge
7.3 Immutability
Video 7.3.1 Immutability
Check for Understanding 7.3.2 Immutability
Example 7.3.3 String Immutability
Exercise 7.3.4 Find the Error
7.4 Strings and For Loops
Video 7.4.1 Strings and For Loops
Check for Understanding 7.4.2 Strings and For Loops
Example 7.4.3 The len Function
Practice 7.4.4 Length of User's Name
Example 7.4.5 String For Loop with Indices
Example 7.4.6 String For Loop with Characters
Exercise 7.4.7 Spelling Bee
Practice 7.4.8 Keeping Count
7.5 The in Keyword
Video 7.5.1 The in Keyword
Check for Understanding 7.5.2 The in Keyword
Example 7.5.3 Contains a Letter
Example 7.5.4 Contains a Substring
Practice 7.5.5 Contains a Vowel
7.6 String Methods
Video 7.6.1 String Methods
Check for Understanding 7.6.2 String Methods
Example 7.6.3 upper and lower
Practice 7.6.4 ENTHUSIASM!
Example 7.6.5 swapcase
Example 7.6.6 strip
Example 7.6.7 find
Practice 7.6.8 What's in a Name?
Practice 7.6.9 Part 1, Remove All From String
Exercise 7.6.10 Part 2, Remove All From String
Survey 7.6.11 Mindset Survey 3
7.7 Strings Quiz
Unit Quiz 7.7.1 Strings Quiz
Badge 7.7.2 Strings Badge
8. Creating and Altering Data Structures
8.1 Tuples
Video 8.1.1 Tuples
Check for Understanding 8.1.2 Tuples
Example 8.1.3 A Tuple Is a Sequence
Example 8.1.4 A Tuple is Heterogenous
Example 8.1.5 Tuples With a Single Element
Example 8.1.6 Concatenating Tuples
Exercise 8.1.7 Fix This Tuple
Practice 8.1.8 Citation
Practice 8.1.9 Diving Contest
Practice 8.1.10 Coordinate Pairs
8.2 Lists
Video 8.2.1 Lists
Check for Understanding 8.2.2 Lists
Example 8.2.3 A List Is Like a Mutable Tuple
Example 8.2.4 String <--> List
Practice 8.2.5 Spell It Out
Example 8.2.6 Splitting a String
Practice 8.2.7 Listed Greeting
Example 8.2.8 List of Tuples, Tuples of Lists
8.3 For Loops and Lists
Video 8.3.1 For Loops and Lists
Check for Understanding 8.3.2 For Loops and Lists
Example 8.3.3 For Loops and Lists
Example 8.3.4 For Loops and Lists, Part 2
Practice 8.3.5 Max In List
Practice 8.3.6 Owls
Practice 8.3.7 Exclamat!on Po!nts
Challenge 8.3.8 Word Ladder
Challenge 8.3.9 Owls, Part 2
8.4 List Methods
Video 8.4.1 List Methods
Check for Understanding 8.4.2 List Methods
Example 8.4.3 append and extend
Exercise 8.4.4 How Many Names?
Exercise 8.4.5 Five Numbers
Example 8.4.6 sort
Exercise 8.4.7 Librarian
Example 8.4.8 reverse
Example 8.4.9 count
Example 8.4.10 remove
Practice 8.4.11 Take a Thing Out, Sort It and Reverse It
Challenge 8.4.12 Librarian, Part 2
Badge 8.4.13 Lists Badge
8.5 Creating and Altering Data Structures Quiz
Unit Quiz 8.5.1 Creating and Altering Data Structures Quiz
9. Extending Data Structures
9.1 2d Lists
Video 9.1.1 2d Lists
Check for Understanding 9.1.2 2d Lists
Example 9.1.3 A List of Lists
Example 9.1.4 Grid
Example 9.1.5 2d Lists and Slices
Exercise 9.1.6 Checkerboard, v1
Exercise 9.1.7 Checkerboard, v2
Exercise 9.1.8 Checkerboard, v3
Challenge 9.1.9 Tic Tac Toe
9.2 List Comprehensions
Video 9.2.1 List Comprehensions
Check for Understanding 9.2.2 List Comprehensions
Example 9.2.3 List of Consecutive Numbers
Example 9.2.4 List of Squares
Exercise 9.2.5 Divisible by 3
Example 9.2.6 Digits of Pi
Example 9.2.7 List of Booleans
Exercise 9.2.8 Last Names
Exercise 9.2.9 Strings To Integers
Survey 9.2.10 Mindset Survey 4
9.3 Packing and Unpacking
Video 9.3.1 Packing and Unpacking
Check for Understanding 9.3.2 Packing and Unpacking
Example 9.3.3 Packing
Example 9.3.4 Unpacking
Example 9.3.5 Unpacking Parameters
Exercise 9.3.6 Coordinate Pair
Exercise 9.3.7 Slopes
Example 9.3.8 Swapping
Exercise 9.3.9 Full Name & Citation
Badge 9.3.10 Packing Badge
9.4 Dictionaries
Video 9.4.1 Dictionaries
Check for Understanding 9.4.2 Dictionaries
Example 9.4.3 Keys and Values
Example 9.4.4 The in Keyword
Exercise 9.4.5 Phone Book
Exercise 9.4.6 Word Counts
9.5 Equivalence vs. Identity
Video 9.5.1 Equivalence vs. Identity
Check for Understanding 9.5.2 Equivalence vs. Identity
Example 9.5.3 Equivalence vs. Identity - Mutables
Example 9.5.4 Equivalence vs. Identity - Immutables
Example 9.5.5 Identity and Parameters
Exercise 9.5.6 Swapping
Exercise 9.5.7 Word Counts, Part 2
9.6 Extending Data Structures Quiz
Unit Quiz 9.6.1 Extending Data Structures Quiz
Badge 9.6.2 Data Structures Badge
10. Project: Guess the Word
10.1 Project: Guess the Word
Demo 10.1.1 Guess the Word Demo
Exercise 10.1.2 Guess the Word, Part 1
Exercise 10.1.3 Guess the Word, Part 2
Exercise 10.1.4 Guess the Word, Part 3
Exercise 10.1.5 Guess the Word, Part 4
Badge 10.1.6 Guess the Word Badge
10.2 Intro to Computer Science in Python Completed
Badge 10.2.1 Intro to Computer Science in Python Badge
11. Final Exam
11.1 Final Exam
Midterm 11.1.1 Final Exam Pt 1: Multiple Choice