### Please enable JavaScript to use CodeHS

Intro to Computer Science in Python 2 (Rainforest)

#### 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
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
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
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
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.5 Shape Stack
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
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
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
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
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
2.20 Intro to Programming with Turtle Graphics Quiz
Quiz 2.20.1 Intro to Programming with Turtle Graphics Quiz
3. Basic Python and Console Interaction
3.1 Printing in Python
Video 3.1.1 Printing in Python
Quiz 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
Quiz 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
3.3 User Input
Video 3.3.1 User Input
Quiz 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
Quiz 3.4.2 Mathematical Operators
Example 3.4.3 Operators and Integers
Example 3.4.4 Operator Precedence
Example 3.4.6 Operators and Floats
Exercise 3.4.7 Rectangle
3.5 String Operators
Video 3.5.1 String Operators
Quiz 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
Example 3.6.3 Commented Program
Example 3.6.4 Trapezoid
3.7 Basic Python and Console Interaction Quiz
Quiz 3.7.1 Basic Python and Console Interaction Quiz
4. Conditionals
4.1 Booleans
Video 4.1.1 Booleans
Quiz 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
Quiz 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?
4.3 Comparison Operators
Video 4.3.1 Comparison Operators
Quiz 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
Quiz 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
Quiz 4.5.2 Floating Point Numbers and Rounding
Example 4.5.3 Rounding Error
Exercise 4.5.4 Correct Portion
4.6 Conditionals Quiz
Quiz 4.6.1 Conditionals Quiz
5. Looping
5.1 While Loops
Video 5.1.1 While Loops
Quiz 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
Quiz 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?
Survey 5.2.11 Mindset Survey 2
5.3 Break and Continue
Video 5.3.1 Break and Continue
Quiz 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
Quiz 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
Quiz 5.5.1 Looping Quiz
6. Functions and Exceptions
6.1 Functions
Video 6.1.1 Functions
Quiz 6.1.2 Functions
Example 6.1.3 Greeting
Example 6.1.4 Extended Greeting
Exercise 6.1.5 Weather
6.2 Namespaces in Functions
Video 6.2.1 Namespaces in Functions
Quiz 6.2.2 Namespaces in Functions
Example 6.2.3 Functions and Variables
Example 6.2.4 Functions and Variables, Part 2
Debugging 6.2.5 Fix This Program!
Exercise 6.2.6 Adding to a Value
Exercise 6.2.7 Add, Subtract, or Multiply
6.3 Functions and Parameters
Video 6.3.1 Functions and Parameters
Quiz 6.3.2 Functions and Parameters
Example 6.3.3 Print a Number
Example 6.3.4 Name and Age
Exercise 6.3.5 Print Product
Exercise 6.3.6 Print Multiple Times
Example 6.3.7 Default Parameter Values
Exercise 6.3.8 Area of a Square with Default Parameters
6.4 Functions and Return Values
Video 6.4.1 Functions and Return Values
Quiz 6.4.2 Functions and Return Values
Example 6.4.3 Return 10
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
6.5 Exceptions
Video 6.5.1 Exceptions
Quiz 6.5.2 Exceptions
Example 6.5.3 Enter a Number
Example 6.5.4 Enter Name and Age
Exercise 6.5.5 Divisibility, Part 2
Exercise 6.5.6 Temperature Converter, Part 2
Exercise 6.5.7 Enter a Positive Number
6.6 Functions and Exceptions Quiz
Quiz 6.6.1 Functions and Exceptions Quiz
7. Strings
7.1 Indexing
Video 7.1.1 Indexing
Quiz 7.1.2 Indexing
Example 7.1.3 Characters in a String
Exercise 7.1.4 Initials
Exercise 7.1.5 Doghouse
7.2 Slicing
Video 7.2.1 Slicing
Quiz 7.2.2 Slicing
Example 7.2.3 Groups of Characters
Example 7.2.4 String Collage
Example 7.2.5 Room Names
Exercise 7.2.6 First Character
Exercise 7.2.7 Part 1, Replace a Letter
Exercise 7.2.8 Part 2, Replace a Letter
7.3 Immutability
Video 7.3.1 Immutability
Quiz 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
Quiz 7.4.2 Strings and For Loops
Example 7.4.3 The len Function
Exercise 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
Exercise 7.4.8 Count Occurrences
7.5 The in Keyword
Video 7.5.1 The in Keyword
Quiz 7.5.2 The in Keyword
Example 7.5.3 Contains a Letter
Example 7.5.4 Contains a Substring
Exercise 7.5.5 Contains a Vowel
7.6 String Methods
Video 7.6.1 String Methods
Quiz 7.6.2 String Methods
Example 7.6.3 upper and lower
Exercise 7.6.4 Enthusiasm
Example 7.6.5 swapcase
Example 7.6.6 strip
Example 7.6.7 find
Exercise 7.6.8 Vowels in First Name
Exercise 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
Quiz 7.7.1 Strings Quiz
8. Creating and Altering Data Structures
8.1 Tuples
Video 8.1.1 Tuples
Quiz 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
Exercise 8.1.8 Citation
Exercise 8.1.9 Cookout Orders
Challenge 8.1.10 Coordinate Pairs
8.2 Lists
Video 8.2.1 Lists
Quiz 8.2.2 Lists
Example 8.2.3 A List Is Like a Mutable Tuple
Example 8.2.4 String <--> List
Exercise 8.2.5 Letters in Name
Example 8.2.6 Splitting a String
Exercise 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
Quiz 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
Exercise 8.3.5 Max In List
Exercise 8.3.6 Owls
Exercise 8.3.7 Exclamat!on Po!nts
8.4 List Methods
Video 8.4.1 List Methods
Quiz 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
Exercise 8.4.11 Fruits and Vegetables
Challenge 8.4.12 Librarian, Part 2
Challenge 8.4.13 Owls, Part 2
8.5 Creating and Altering Data Structures Quiz
Quiz 8.5.1 Creating and Altering Data Structures Quiz
9. Extending Data Structures
9.1 2d Lists
Video 9.1.1 2d Lists
Quiz 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
Quiz 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
Quiz 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
9.4 Dictionaries
Video 9.4.1 Dictionaries
Quiz 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
Quiz 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
Quiz 9.6.1 Extending Data Structures Quiz