Please enable JavaScript to use CodeHS

Outline


1. Functions and Exceptions
1.1 Functions
Video 1.1.1 Functions
Check for Understanding 1.1.2 Functions
Example 1.1.3 Greeting
Example 1.1.4 Extended Greeting
Exercise 1.1.5 Weather
1.2 Functions and Parameters
Video 1.2.1 Functions and Parameters
Check for Understanding 1.2.2 Functions and Parameters
Example 1.2.3 Print a Value
Example 1.2.4 Name and Age
Exercise 1.2.5 Print Product
Exercise 1.2.6 Print Multiple Times
Example 1.2.7 Default Parameter Values
Exercise 1.2.8 Area of a Square with Default Parameters
1.3 Namespaces in Functions
Video 1.3.1 Namespaces in Functions
Check for Understanding 1.3.2 Namespaces in Functions
Example 1.3.3 Functions and Variables
Example 1.3.4 Functions and Variables, Part 2
Debugging 1.3.5 Fix This Program!
Exercise 1.3.6 Adding to a Value
Exercise 1.3.7 Add, Subtract, or Multiply
1.4 Functions and Return Values
Video 1.4.1 Functions and Return Values
Check for Understanding 1.4.2 Functions and Return Values
Example 1.4.3 Return 10
Exercise 1.4.4 Add One
Example 1.4.5 Negate
Example 1.4.6 Functions Calling Functions
Example 1.4.7 Function Calls As Parameters
Exercise 1.4.8 Sum Two Numbers
Exercise 1.4.9 Temperature Converter
Badge 1.4.10 Functions Badge
1.5 Exceptions
Video 1.5.1 Exceptions
Check for Understanding 1.5.2 Exceptions
Example 1.5.3 Enter a Number
Example 1.5.4 Enter Name and Age
Exercise 1.5.5 Temperature Converter, Part 2
Exercise 1.5.6 Enter a Positive Number
1.6 Functions Quiz
Unit Quiz 1.6.1 Functions and Exceptions Quiz
Badge 1.6.2 Control Flow Badge
2. Strings
2.1 Indexing
Video 2.1.1 Indexing
Check for Understanding 2.1.2 Indexing
Example 2.1.3 Characters in a String
Video 2.1.4 Unit Tests
Practice 2.1.5 Initials
Practice 2.1.6 Sandwich Sandwiches
2.2 Slicing
Video 2.2.1 Slicing
Check for Understanding 2.2.2 Slicing
Example 2.2.3 Groups of Characters
Example 2.2.4 String Collage
Example 2.2.5 Room Names
Practice 2.2.6 If You're Not First, You're Last
Practice 2.2.7 Part 1, Replace a Letter
Practice 2.2.8 Part 2, Replace a Letter
Badge 2.2.9 Slicing Badge
2.3 Immutability
Video 2.3.1 Immutability
Check for Understanding 2.3.2 Immutability
Example 2.3.3 String Immutability
Exercise 2.3.4 Find the Error
2.4 Strings and For Loops
Video 2.4.1 Strings and For Loops
Check for Understanding 2.4.2 Strings and For Loops
Example 2.4.3 The len Function
Practice 2.4.4 Length of User's Name
Example 2.4.5 String For Loop with Indices
Example 2.4.6 String For Loop with Characters
Exercise 2.4.7 Spelling Bee
Practice 2.4.8 Keeping Count
2.5 The in Keyword
Video 2.5.1 The in Keyword
Check for Understanding 2.5.2 The in Keyword
Example 2.5.3 Contains a Letter
Example 2.5.4 Contains a Substring
Practice 2.5.5 Contains a Vowel
2.6 String Methods
Video 2.6.1 String Methods
Check for Understanding 2.6.2 String Methods
Example 2.6.3 upper and lower
Practice 2.6.4 ENTHUSIASM!
Example 2.6.5 swapcase
Example 2.6.6 strip
Example 2.6.7 find
Practice 2.6.8 What's in a Name?
Practice 2.6.9 Part 1, Remove All From String
Exercise 2.6.10 Part 2, Remove All From String
Survey 2.6.11 Mindset Survey 3
2.7 Strings Quiz
Unit Quiz 2.7.1 Strings Quiz
Badge 2.7.2 Strings Badge
3. Project: The Game of Pig
3.1 Project: The Game of Pig
Free Response 3.1.1 The Game of Pig
Exercise 3.1.2 Build the Basic Program
Exercise 3.1.3 Adding a Computer Opponent
4. Creating and Altering Data Structures
4.1 Tuples
Video 4.1.1 Tuples
Check for Understanding 4.1.2 Tuples
Example 4.1.3 A Tuple Is a Sequence
Example 4.1.4 A Tuple is Heterogeneous
Example 4.1.5 Tuples With a Single Element
Example 4.1.6 Concatenating Tuples
Exercise 4.1.7 Fix This Tuple
Practice 4.1.8 Citation
Practice 4.1.9 Diving Contest
Practice 4.1.10 Coordinate Pairs
4.2 Lists
Video 4.2.1 Lists
Check for Understanding 4.2.2 Lists
Example 4.2.3 A List Is Like a Mutable Tuple
Example 4.2.4 String <--> List
Practice 4.2.5 Spell It Out
Example 4.2.6 Splitting a String
Practice 4.2.7 Listed Greeting
Example 4.2.8 List of Tuples, Tuples of Lists
4.3 For Loops and Lists
Video 4.3.1 For Loops and Lists
Check for Understanding 4.3.2 For Loops and Lists
Example 4.3.3 For Loops and Lists
Example 4.3.4 For Loops and Lists, Part 2
Practice 4.3.5 Max In List
Practice 4.3.6 Owls
Practice 4.3.7 Exclamat!on Po!nts
Challenge 4.3.8 Word Ladder
Challenge 4.3.9 Owls, Part 2
4.4 List Methods
Video 4.4.1 List Methods
Check for Understanding 4.4.2 List Methods
Example 4.4.3 append and extend
Exercise 4.4.4 How Many Names?
Exercise 4.4.5 Five Numbers
Example 4.4.6 sort
Exercise 4.4.7 Librarian
Example 4.4.8 reverse
Example 4.4.9 count
Example 4.4.10 remove
Practice 4.4.11 Take a Thing Out, Sort It and Reverse It
Challenge 4.4.12 Librarian, Part 2
Badge 4.4.13 Lists Badge
4.5 Creating and Altering Data Structures Quiz
Unit Quiz 4.5.1 Creating and Altering Data Structures Quiz
5. Extending Data Structures
5.1 2d Lists
Video 5.1.1 2d Lists
Check for Understanding 5.1.2 2d Lists
Example 5.1.3 A List of Lists
Example 5.1.4 Grid
Example 5.1.5 2d Lists and Slices
Exercise 5.1.6 Checkerboard, v1
Exercise 5.1.7 Checkerboard, v2
Exercise 5.1.8 Checkerboard, v3
Challenge 5.1.9 Tic Tac Toe
5.2 List Comprehensions
Video 5.2.1 List Comprehensions
Check for Understanding 5.2.2 List Comprehensions
Example 5.2.3 List of Consecutive Numbers
Example 5.2.4 List of Squares
Exercise 5.2.5 Divisible by 3
Example 5.2.6 Digits of Pi
Example 5.2.7 List of Booleans
Exercise 5.2.8 Last Names
Exercise 5.2.9 Strings To Integers
Survey 5.2.10 Mindset Survey 4
5.3 Packing and Unpacking
Video 5.3.1 Packing and Unpacking
Check for Understanding 5.3.2 Packing and Unpacking
Example 5.3.3 Packing
Example 5.3.4 Unpacking
Example 5.3.5 Unpacking Parameters
Exercise 5.3.6 Coordinate Pair
Exercise 5.3.7 Slopes
Example 5.3.8 Swapping
Exercise 5.3.9 Full Name & Citation
Badge 5.3.10 Packing Badge
5.4 Dictionaries
Video 5.4.1 Dictionaries
Check for Understanding 5.4.2 Dictionaries
Example 5.4.3 Keys and Values
Example 5.4.4 The in Keyword
Exercise 5.4.5 Phone Book
Exercise 5.4.6 Word Counts
5.5 Extending Data Structures Quiz
Unit Quiz 5.5.1 Extending Data Structures Quiz
Badge 5.5.2 Data Structures Badge
6. Project: Guess the Word
6.1 Project: Guess the Word
Demo 6.1.1 Guess the Word Demo
Exercise 6.1.2 Guess the Word, Part 1
Exercise 6.1.3 Guess the Word, Part 2
Exercise 6.1.4 Guess the Word, Part 3
Exercise 6.1.5 Guess the Word, Part 4
7. File I/O
7.1 What is File I/O
Video 7.1.1 What is File I/O
Quiz 7.1.2 What is File I/O
Example 7.1.3 What is a TXT File?
Example 7.1.4 What is a CSV File?
Free Response 7.1.5 Choosing a File Format: TXT vs. CSV
Example 7.1.6 File I/O in Data Science
Example 7.1.7 File I/O in Image Processing
Free Response 7.1.8 File I/O and Social Media
7.2 Reading Character from File
Video 7.2.1 Reading Character from File
Video 7.2.2 Reading Characters from File: Example Walkthrough
Quiz 7.2.3 Reading Characters from File
Example 7.2.4 Read Specific Characters
Example 7.2.5 Read All Characters
Debugging 7.2.6 Fix This: Reading Characters
Debugging 7.2.7 Fix This: Unable to Read
Exercise 7.2.8 Validating Tweet Length
7.3 Reading Line from File
Video 7.3.1 Reading Line From File
Video 7.3.2 Reading Line from File: Example Walkthrough
Quiz 7.3.3 Read Line from File
Example 7.3.4 Reading and Printing Lines
Exercise 7.3.5 Counting Lines in a File
Exercise 7.3.6 Summing Numbers from File
Exercise 7.3.7 Formatting Movie Titles
7.4 Reading All Lines from File
Video 7.4.1 Reading All Lines from File
Video 7.4.2 Reading All Lines from File: Example Walkthrough
Quiz 7.4.3 Reading All Lines from File
Example 7.4.4 Using readlines()
Exercise 7.4.5 Finding the Needle in the Haystack
Exercise 7.4.6 Extract Quotes from a Text File
7.5 Writing to File
Video 7.5.1 Writing to File
Video 7.5.2 Write to End of File: Example Walkthrough
Quiz 7.5.3 Writing to File
Example 7.5.4 Write to File
Example 7.5.5 Append to File
Exercise 7.5.6 Activity Tracker
Exercise 7.5.7 Guest Book
Exercise 7.5.8 Write the Sum
7.6 Move File Pointer Position
Video 7.6.1 Move File Pointer Position
Video 7.6.2 Move File Pointer Position: Example Walkthrough
Quiz 7.6.3 Move File Pointer Position
Example 7.6.4 Using tell()
Example 7.6.5 Reading from a Position in File
Exercise 7.6.6 Read from Middle
Exercise 7.6.7 Reverse a File
7.7 File I/O Quiz
Quiz 7.7.1 File I/O Quiz
8. Classes and Objects
8.1 Classes and Objects
Video 8.1.1 Classes and Objects
Check for Understanding 8.1.2 Classes and Objects
Example 8.1.3 The Point Class
Exercise 8.1.4 The Rectangle Class, Part 1
Example 8.1.5 The Point Class, Part 2
Exercise 8.1.6 The Rectangle Class, Part 2
8.2 Methods
Video 8.2.1 Methods
Check for Understanding 8.2.2 Methods
Example 8.2.3 The Point Class, Part 3
Example 8.2.4 The Point Class, Part 4
Exercise 8.2.5 The Rectangle Class, Part 3
Exercise 8.2.6 The Rectangle Class, Part 4
8.3 Built-In Methods
Video 8.3.1 Built-In Methods
Check for Understanding 8.3.2 Built-In Methods
Example 8.3.3 The __repr__ method
Example 8.3.4 The __eq__ method
Example 8.3.5 The Point Class, Part 5
Exercise 8.3.6 The Rectangle Class, Part 5
Exercise 8.3.7 The Rectangle Class, Part 6
Example 8.3.8 Sheet Music
Challenge 8.3.9 Names In a Hat
8.4 Operator Overloading
Video 8.4.1 Operator Overloading
Check for Understanding 8.4.2 Operator Overloading
Example 8.4.3 The __add__ method
Example 8.4.4 The Point Class, Part 6
Exercise 8.4.5 The Rectangle Class, Part 7
Exercise 8.4.6 The Rectangle Class, Part 8
Exercise 8.4.7 Contact Merge
8.5 Class Variables vs. Instance Variables
Video 8.5.1 Class Variables vs. Instance Variables
Check for Understanding 8.5.2 Class Variables vs. Instance Variables
Example 8.5.3 The Point Class, Part 7
Exercise 8.5.4 The Rectangle Class, Part 9
Example 8.5.5 Cars
Exercise 8.5.6 Cars, Part 2
Example 8.5.7 Cars, Part 3
9. Exploring CS Careers
9.1 Computer Science Careers
Video 9.1.1 Computer Science All Around Us
Quiz 9.1.2 Computer Science All Around Us
Connection 9.1.3 CS Careers
Free Response 9.1.4 CS Career Response
Connection 9.1.5 Coding in the Wild
Free Response 9.1.6 Coding in the Wild Response
Connection 9.1.7 Inclusive Coding
Free Response 9.1.8 Inclusive Coding Response
9.2 Explore a Career
Connection 9.2.1 How to Choose the Right Career Path
Free Response 9.2.2 Step 1: Your Hobbies
Free Response 9.2.3 Step 2: Your Talents
Free Response 9.2.4 Step 3: Your Personality
Free Response 9.2.5 Step 4: Your Career Aspirations
Free Response 9.2.6 Step 5: Do Your Research
Notes 9.2.7 Career Exploration Presentation Guidelines
Presentation 9.2.8 Career Exploration Presentation