Please enable JavaScript to use CodeHS

Points

Activity Points
Welcome
1.1 Welcome
1.1.1 Welcome 1
1.1.2 Welcome 5
1.1.3 Course Content Overview 1
Introduction to Programming with Turtle Graphics
2.1 Intro to Python with Tracy the Turtle
2.1.1 Intro to Tracy 1
2.1.2 Intro to Tracy 3
2.1.3 Slinky 1
2.1.4 Stretched Slinky 5
2.2 Tracy's Grid World
2.2.1 Tracy's Grid World 1
2.2.2 Tracy's Grid World 5
2.2.3 Dashed Line 1
2.2.4 Shorter Dashed Line 5
2.2.5 Caterpillar 5
2.2.6 Grid World Badge 1
2.3 Turning Tracy
2.3.1 Turning Tracy 1
2.3.2 Turning Tracy 3
2.3.3 Square 1
2.3.4 X and Y Axes 1
2.3.5 Rectangle 5
2.3.6 4 Columns 5
2.4 For Loops
2.4.1 For Loops 1
2.4.2 For Loops 5
2.4.3 Square Using Loops 1
2.4.4 Dotted Line 1
2.4.5 Row of Circles 5
2.4.6 4 Columns 2.0 5
2.4.7 Looping Badge 1
2.5 Turning Tracy Using Angles
2.5.1 Turning Tracy Using Angles 1
2.5.2 Turning Tracy Using Angles 4
2.5.3 Asterisk 1
2.5.4 Four Circles 1
2.5.5 Hexagon 5
2.5.6 'X' Marks the Spot 5
2.5.7 Circle Pyramid 5
2.6 Comments
2.6.1 Comments 1
2.6.2 Comments 3
2.6.3 Four Circles with Comments 1
2.6.4 Circle Pyramid with Comments 5
2.7 Naming Guidelines
2.7.1 Naming Guidelines 1
2.7.2 Naming Guidelines 2
2.8 Functions
2.8.1 Functions 1
2.8.2 Functions 3
2.8.3 X and Y Axes with Hash Marks 1
2.8.4 Beaded Bracelet 5
2.8.5 Shape Stack 5
2.8.6 Functions Badge 1
2.9 Artistic Effects
2.9.1 Artistic Effects 1
2.9.2 Artistic Effects 5
2.9.3 Rainbow Octagon 1
2.9.4 Circle Square Triangle 1
2.9.5 Four Colored Triangles 5
2.9.6 Colorful Bracelet 5
2.9.7 Kid's Shapes Toy 10
2.10 Top Down Design
2.10.1 Top Down Design 1
2.10.2 Top Down Design 2
2.10.3 Bubble Wrap 1
2.10.4 Bubble Wrap 2.0 5
2.10.5 Sidewalk 5
2.11 Variables
2.11.1 Variables 1
2.11.2 Variables 3
2.11.3 Increasing Length 1
2.11.4 Dartboard 5
2.11.5 Line of Increasing Blocks 5
2.12 User Input
2.12.1 User Input 1
2.12.2 User Input 3
2.12.3 Color Coded Increasing Length 1
2.12.4 Colored Dartboard 5
2.12.5 Four Corners 5
2.12.6 User Input Badge 1
2.13 Parameters
2.13.1 Parameters 1
2.13.2 Parameters 3
2.13.3 Concentric Circles 1
2.13.4 Colorful Caterpillar 5
2.13.5 Circle in a Square 5
2.13.6 Snowman 5
2.14 Using i in For Loops
2.14.1 Using i in For Loops 1
2.14.2 Using i in For Loops 3
2.14.3 Geometry 1
2.14.4 Geometry 2.0 5
2.15 Extended Loop Control
2.15.1 Extended Loop Control 1
2.15.2 Extended Loop Control 2
2.15.3 Square Swirl 1
2.15.4 Dartboard using i 5
2.15.5 Phone Signal 5
2.15.6 Master of i Badge 1
2.16 If Statements
2.16.1 If Statements 1
2.16.2 If Statements 5
2.16.3 X and Y Axis with Bolded Marks 1
2.16.4 Happy Face 5
2.16.5 Black and White Squares 5
2.17 If/ Else Statements
2.17.1 If/Else Statements 1
2.17.2 If/Else Statements 4
2.17.3 Positive, Negative, Zero 1
2.17.4 Rating 5
2.17.5 Happy/ Sad Face 5
2.18 While Loops
2.18.1 While Loops 1
2.18.2 While Loops 4
2.18.3 Increasing Circles 1
2.18.4 Increasing Squares 5
2.18.5 Guess a Number 5
2.18.6 Conditionals Badge 1
2.18.7 Mindset Survey 1 1
2.19 Putting Together Control Structures
2.19.1 Putting Together Control Structures 1
2.19.2 Putting Together Control Structures 3
2.19.3 Block Pyramid 1
2.19.4 Guess a Number 2.0 5
2.19.5 Circle Pyramid 2.0 5
2.19.6 Checkerboard 10
2.19.7 Tracy the Turtle Badge 1
2.20 Intro to Programming with Turtle Graphics Quiz
2.20.1 Putting It All Together Quiz 25
2.20.2 Intro to Programming with Turtle Graphics Badge 1
Basic Python and Console Interaction
3.1 Printing in Python
3.1.1 Printing in Python 1
3.1.2 Printing in Python 5
3.1.3 Hello, world! 1
3.1.4 Printing Multiple Lines 1
3.1.5 Introduce Yourself 5
3.1.6 Fix This Program! 5
3.1.7 Vertical name 5
3.2 Variables and Types
3.2.1 Variables and Types 1
3.2.2 Variables and Types 5
3.2.3 Variables in Action 1
3.2.4 Variable Types 1
3.2.5 Variable Naming 1
3.2.6 Make Some Variables! 5
3.2.7 Undefined Variables 5
3.2.8 Variables Badge 1
3.3 User Input
3.3.1 User Input 1
3.3.2 User Input 5
3.3.3 Basic User Input 1
3.3.4 Type Conversion 1
3.3.5 Type Conversion, Part 2 1
3.3.6 Hello <name> 5
3.3.7 Age 5
3.4 Mathematical Operators
3.4.1 Mathematical Operators 1
3.4.2 Mathematical Operators 5
3.4.3 Operators and Integers 1
3.4.4 Operator Precedence 1
3.4.5 Add Parentheses 5
3.4.6 Operators and Floats 1
3.4.7 Rectangle 5
3.5 String Operators
3.5.1 String Operators 1
3.5.2 String Operators 5
3.5.3 Operators and Strings 1
3.5.4 Fix This Program 5
3.5.5 Team Sizes 1
3.5.6 Introduce Yourself, Part 2 5
3.5.7 Rectangle, Part 2 5
3.5.8 Rectangle, Part 3 5
3.5.9 Recipe 10
3.6 Comments
3.6.1 Comments 1
3.6.2 Comments 5
3.6.3 Commented Program 1
3.6.4 Trapezoid 1
3.6.5 Add Comments! 5
3.7 Basic Python and Console Interaction Quiz
3.7.1 Basic Python and Console Interaction Quiz 25
3.7.2 Basic Python and Console Interaction Badge 1
Conditionals
4.1 Booleans
4.1.1 Booleans 1
4.1.2 Booleans 5
4.1.3 Boolean Variables 1
4.1.4 Fix This Program 5
4.1.5 Plants 5
4.2 If Statements
4.2.1 If Statements 1
4.2.2 If Statements 5
4.2.3 Your First If Statement 1
4.2.4 If-Else Statement 1
4.2.5 Fix This Program 5
4.2.6 Is It Raining? 5
4.2.7 Conditional Badge 1
4.3 Comparison Operators
4.3.1 Comparison Operators 1
4.3.2 Comparison Operators 5
4.3.3 Comparison Operators 1
4.3.4 High Jump 1
4.3.5 Roller Coaster 1
4.3.6 Old Enough to Vote? 5
4.3.7 Positive, Zero, or Negative? 5
4.3.8 Age Group 1
4.3.9 Table Reservation 5
4.3.10 Transaction 10
4.4 Logical Operators
4.4.1 Logical Operators 1
4.4.2 Logical Operators 5
4.4.3 Logical Operators 1
4.4.4 Administrators, Teachers, and Students 5
4.4.5 Presidential Eligibility 5
4.4.6 Presidential Eligibility- Extended 10
4.5 Floating Point Numbers and Rounding
4.5.1 Floating Point Numbers and Rounding 1
4.5.2 Floating Point Numbers and Rounding 5
4.5.3 Rounding Error 1
4.5.4 Correct Portion 5
4.6 Conditionals Quiz
4.6.1 Conditionals Quiz 15
Looping
5.1 While Loops
5.1.1 While Loops 1
5.1.2 While Loops 5
5.1.3 Guess My Number 1
5.1.4 Program Tracing 1
5.1.5 Program Tracing, Part 2 1
5.1.6 2 Through 20 Even 5
5.1.7 Divisibility 5
5.2 For Loops
5.2.1 For Loops 1
5.2.2 For Loops 5
5.2.3 Print 10 Numbers 1
5.2.4 1 Through 10, Part 2 1
5.2.5 Counting 10 to 100 by Tens 5
5.2.6 Running Total 1
5.2.7 Running Total, Part 2 1
5.2.8 Average Test Score 5
5.2.9 How Many Names? 5
5.2.10 Loops Badge 1
5.2.11 Mindset Survey 2 1
5.3 Break and Continue
5.3.1 Break and Continue 1
5.3.2 Break and Continue 5
5.3.3 Break 1
5.3.4 Continue 1
5.3.5 Bike Frame Size 1
5.3.6 Loop and a Half 1
5.3.7 Higher/ Lower 5
5.3.8 Higher / Lower 2.0 10
5.4 Nested Control Structures
5.4.1 Nested Control Structures 1
5.4.2 Nested Control Structures 5
5.4.3 Double For Loop 1
5.4.4 Average Test Score, Part 2 1
5.4.5 For Loop + While Loop 1
5.4.6 Rolling Dice 5
5.4.7 Categories 5
5.5 Looping Quiz
5.5.1 Looping Quiz 15
Functions and Exceptions
6.1 Functions
6.1.1 Functions 1
6.1.2 Functions 5
6.1.3 Greeting 1
6.1.4 Extended Greeting 1
6.1.5 Weather 5
6.2 Namespaces in Functions
6.2.1 Namespaces in Functions 1
6.2.2 Namespaces in Functions 2
6.2.3 Functions and Variables 1
6.2.4 Functions and Variables, Part 2 1
6.2.5 Fix This Program! 5
6.2.6 Adding to a Value 5
6.2.7 Add, Subtract, or Multiply 5
6.3 Functions and Parameters
6.3.1 Functions and Parameters 1
6.3.2 Functions and Parameters 5
6.3.3 Print a Number 1
6.3.4 Name and Age 1
6.3.5 Print Product 5
6.3.6 Print Multiple Times 5
6.3.7 Default Parameter Values 1
6.3.8 Area of a Square with Default Parameters 5
6.4 Functions and Return Values
6.4.1 Functions and Return Values 1
6.4.2 Functions and Return Values 5
6.4.3 Return 10 1
6.4.4 Add One 5
6.4.5 Negate 1
6.4.6 Functions Calling Functions 1
6.4.7 Function Calls As Parameters 1
6.4.8 Sum Two Numbers 5
6.4.9 Temperature Converter 5
6.4.10 Functions Badge 1
6.5 Exceptions
6.5.1 Exceptions 1
6.5.2 Exceptions 5
6.5.3 Enter a Number 1
6.5.4 Enter Name and Age 1
6.5.5 Divisibility, Part 2 5
6.5.6 Temperature Converter, Part 2 5
6.5.7 Enter a Positive Number 5
6.6 Functions and Exceptions Quiz
6.6.1 Functions and Exceptions Quiz 25
6.6.2 Control Flow Badge 1
Strings
7.1 Indexing
7.1.1 Indexing 1
7.1.2 Indexing 5
7.1.3 Characters in a String 1
7.1.4 Initials 5
7.1.5 Doghouse 5
7.2 Slicing
7.2.1 Slicing 1
7.2.2 Slicing 5
7.2.3 Groups of Characters 1
7.2.4 String Collage 1
7.2.5 Room Names 1
7.2.6 First Character 5
7.2.7 Part 1, Replace a Letter 5
7.2.8 Part 2, Replace a Letter 5
7.2.9 Slicing Badge 1
7.3 Immutability
7.3.1 Immutability 1
7.3.2 Immutability 5
7.3.3 String Immutability 1
7.3.4 Find the Error 5
7.4 Strings and For Loops
7.4.1 Strings and For Loops 1
7.4.2 Strings and For Loops 5
7.4.3 The len Function 1
7.4.4 Length of User's Name 5
7.4.5 String For Loop with Indices 1
7.4.6 String For Loop with Characters 1
7.4.7 Spelling Bee 5
7.4.8 Count Occurrences 5
7.5 The in Keyword
7.5.1 The in Keyword 1
7.5.2 The in Keyword 5
7.5.3 Contains a Letter 1
7.5.4 Contains a Substring 1
7.5.5 Contains a Vowel 5
7.6 String Methods
7.6.1 String Methods 1
7.6.2 String Methods 5
7.6.3 upper and lower 1
7.6.4 Enthusiasm 5
7.6.5 swapcase 1
7.6.6 strip 1
7.6.7 find 1
7.6.8 Vowels in First Name 5
7.6.9 Part 1, Remove All From String 5
7.6.10 Part 2, Remove All From String 5
7.6.11 Mindset Survey 3 1
7.7 Strings Quiz
7.7.1 Strings Quiz 25
7.7.2 Strings Badge 1
Creating and Altering Data Structures
8.1 Tuples
8.1.1 Tuples 1
8.1.2 Tuples 5
8.1.3 A Tuple Is a Sequence 1
8.1.4 A Tuple is Heterogenous 1
8.1.5 Tuples With a Single Element 1
8.1.6 Concatenating Tuples 1
8.1.7 Fix This Tuple 5
8.1.8 Citation 5
8.1.9 Cookout Orders 5
8.1.10 Coordinate Pairs 10
8.2 Lists
8.2.1 Lists 1
8.2.2 Lists 5
8.2.3 A List Is Like a Mutable Tuple 1
8.2.4 String <--> List 1
8.2.5 Letters in Name 5
8.2.6 Splitting a String 1
8.2.7 Listed Greeting 5
8.2.8 List of Tuples, Tuples of Lists 1
8.3 For Loops and Lists
8.3.1 For Loops and Lists 1
8.3.2 For Loops and Lists 2
8.3.3 For Loops and Lists 1
8.3.4 For Loops and Lists, Part 2 1
8.3.5 Max In List 5
8.3.6 Owls 5
8.3.7 Exclamat!on Po!nts 5
8.3.8 Word Ladder 10
8.4 List Methods
8.4.1 List Methods 1
8.4.2 List Methods 5
8.4.3 append and extend 1
8.4.4 How Many Names? 5
8.4.5 Five Numbers 5
8.4.6 sort 1
8.4.7 Librarian 5
8.4.8 reverse 1
8.4.9 count 1
8.4.10 remove 1
8.4.11 Fruits and Vegetables 5
8.4.12 Librarian, Part 2 10
8.4.13 Owls, Part 2 10
8.4.14 Lists Badge 1
8.5 Creating and Altering Data Structures Quiz
8.5.1 Creating and Altering Data Structures Quiz 15
Extending Data Structures
9.1 2d Lists
9.1.1 2d Lists 1
9.1.2 2d Lists 5
9.1.3 A List of Lists 1
9.1.4 Grid 1
9.1.5 2d Lists and Slices 1
9.1.6 Checkerboard, v1 5
9.1.7 Checkerboard, v2 5
9.1.8 Checkerboard, v3 5
9.1.9 Tic Tac Toe 10
9.2 List Comprehensions
9.2.1 List Comprehensions 1
9.2.2 List Comprehensions 5
9.2.3 List of Consecutive Numbers 1
9.2.4 List of Squares 1
9.2.5 Divisible by 3 5
9.2.6 Digits of Pi 1
9.2.7 List of Booleans 1
9.2.8 Last Names 5
9.2.9 Strings To Integers 5
9.2.10 Mindset Survey 4 1
9.3 Packing and Unpacking
9.3.1 Packing and Unpacking 1
9.3.2 Packing and Unpacking 5
9.3.3 Packing 1
9.3.4 Unpacking 1
9.3.5 Unpacking Parameters 1
9.3.6 Coordinate Pair 5
9.3.7 Slopes 5
9.3.8 Swapping 1
9.3.9 Full Name & Citation 5
9.3.10 Packing Badge 1
9.4 Dictionaries
9.4.1 Dictionaries 1
9.4.2 Dictionaries 5
9.4.3 Keys and Values 1
9.4.4 The in Keyword 1
9.4.5 Phone Book 5
9.4.6 Word Counts 5
9.5 Equivalence vs. Identity
9.5.1 Equivalence vs. Identity 1
9.5.2 Equivalence vs. Identity 5
9.5.3 Equivalence vs. Identity - Mutables 1
9.5.4 Equivalence vs. Identity - Immutables 1
9.5.5 Identity and Parameters 1
9.5.6 Swapping 5
9.5.7 Word Counts, Part 2 5
9.6 Extending Data Structures Quiz
9.6.1 Extending Data Structures Quiz 25
9.6.2 Data Structures Badge 1
Project: Guess the Word
10.1 Project: Guess the Word
10.1.1 Guess the Word Demo 1
10.1.2 Guess the Word, Part 1 5
10.1.3 Guess the Word, Part 2 5
10.1.4 Guess the Word, Part 3 5
10.1.5 Guess the Word, Part 4 5
10.1.6 Guess the Word Badge 1
10.2 Intro to Computer Science in Python Completed
10.2.1 Intro to Computer Science in Python Badge 1
Final Exam
11.1 Final Exam
11.1.1 Final Exam Pt 1: Multiple Choice 25
Classes and Objects
12.1 Classes and Objects
12.1.1 Classes and Objects 1
12.1.2 Classes and Objects 5
12.1.3 The Point Class 1
12.1.4 The Rectangle Class 5
12.1.5 The Point Class, Part 2 1
12.1.6 The Rectangle Class, Part 2 5
12.2 Methods
12.2.1 Methods 1
12.2.2 Methods 5
12.2.3 The Point Class, Part 3 1
12.2.4 The Point Class, Part 4 1
12.2.5 The Rectangle Class, Part 3 5
12.2.6 The Rectangle Class, Part 4 5
12.3 Built-In Methods
12.3.1 Built-In Methods 1
12.3.2 Built-In Methods 5
12.3.3 The __repr__ method 1
12.3.4 The __eq__ method 1
12.3.5 The Point Class, Part 5 1
12.3.6 The Rectangle Class, Part 5 5
12.3.7 The Rectangle Class, Part 6 5
12.3.8 Sheet Music 1
12.3.9 Names In a Hat 10
12.4 Operator Overloading
12.4.1 Operator Overloading 1
12.4.2 Operator Overloading 5
12.4.3 The __add__ method 1
12.4.4 The Point Class, Part 6 1
12.4.5 The Rectangle Class, Part 7 5
12.4.6 The Rectangle Class, Part 8 5
12.4.7 Contact Merge 5
12.5 Class Variables vs. Instance Variables
12.5.1 Class Variables vs. Instance Variables 1
12.5.2 Class Variables vs. Instance Variables 5
12.5.3 The Point Class, Part 7 1
12.5.4 The Rectangle Class, Part 9 5
12.5.5 Cars 1
12.5.6 Cars, Part 2 5
12.5.7 Cars, Part 3 1
12.6 Inheritance
12.6.1 Inheritance 1
12.6.2 Inheritance 5
12.6.3 Animals 1
12.6.4 Food 5
12.6.5 Animals with Lists 1
12.6.6 Food with Lists 5
12.7 Hidden Attributes
12.7.1 Hidden Attributes 1
12.7.2 Hidden Attributes 5
12.7.3 Secret Instance Variable 1
12.7.4 Only Even Rectangles Counted 5
12.7.5 Level Up 1
12.7.6 Triple and Halve 5
12.8 Namespaces
12.8.1 Namespaces 1
12.8.2 Namespaces 5
12.8.3 Classes 1
12.8.4 Subclasses 1
12.8.5 Food, Part 2 5
12.9 Modules
12.9.1 Modules 1
12.9.2 Modules 5
12.9.3 Importing Entire Module 1
12.9.4 Importing Individual Components 1
12.9.5 Benefits of Individual Importing 5
12.9.6 Using the Math Module 5
12.10 Classes and Objects Quiz
12.10.1 Classes and Objects Quiz 25
12.10.2 Classes and Objects Badge 0
Advanced Tracy Challenges
13.1 Advanced Challenges with Tracy
13.1.1 Half Pyramid 10
13.1.2 Pizza 10
13.1.3 Grid 10
13.1.4 Block Pyramid 2.0 10
Midterm
14.1 Midterm
14.1.1 Intro to Python Midterm Pt. 1- Multiple Choice 10
Additional Topics
15.1 Abstraction
15.1.1 Abstraction 1
15.1.2 Abstraction 5
15.1.3 Abstracting Away draw_square() 1
15.1.4 Abstracting Your Day 5
15.1.5 Reflection: Abstraction 5
15.1.6 Abstraction in Tracy 5
15.2 Short Circuit Evaluation
15.2.1 Short Circuit Evaluation 1
15.2.2 Short Circuit Evaluation 5
15.2.3 Road Trip 1
15.2.4 Divisibility 5
15.2.5 Short Circuit Badge 0
15.3 De Morgan's Laws
15.3.1 De Morgan's Laws 1
15.3.2 De Morgan's Laws 5
15.3.3 De Morgan's Law for AND 1
15.3.4 De Morgan's Law for OR 1
15.3.5 Amusement Park 5
Project: Mastermind
16.1 Let's Build Mastermind
16.1.1 How to Play Mastermind 1
16.1.2 Mastermind: Demo 1
16.1.3 Generate Number List 5
16.1.4 Get User Guess 5
16.1.5 Compare User Guess to List 5
16.1.6 Check if User has Won 5
16.1.7 Finish the Game! 5
Categorizing Triangles
17.1 Calculating Area
17.1.1 Calculating Area 1
17.1.2 Calculating Area 0
17.1.3 Drawing a Custom Triangle 1
17.1.4 Calculate the Area 5
17.2 Categorizing Triangles with a Static Base Value
17.2.1 Categorizing Triangles with a Static Base Value 1
17.2.2 Categorizing Triangles with a Static Base Value 0
17.2.3 Categorizing Obtuse Triangles 1
17.2.4 Putting Triangles into Categories 5
17.3 Categorizing Triangles with a Varied Base Value
17.3.1 Categorizing Triangles with a Varied Base Value 1
17.3.2 Categorizing Triangles with a Varied Base Value 0
17.3.3 Categorizing Obtuse Triangles using Variables 1
17.3.4 Using Variables to Calculate Area 5
17.3.5 Putting Triangles into Categories using Variables 5
Project: Who Said It?
18.1 Project: Who Said It?
18.1.1 File I/O 1
18.1.2 File I/O 5
18.1.3 Who Said It? Demo 1
18.1.4 Who Said It? - Part 1 5
18.1.5 Who Said It? - Part 2 5
18.1.6 Who Said It? - Part 3 5
18.1.7 Who Said It? - Part 4 5
18.1.8 Who Said It? Badge 0
Python Graphics
19.1 Creating the Canvas
19.1.1 Creating the Canvas 1
19.1.2 Creating the Canvas 5
19.1.3 Create the Canvas 1
19.1.4 X Marks the Spot 1
19.1.5 Tic Tac Toe Board 5
19.1.6 Bubble Letter 5
19.2 Shapes and Attributes
19.2.1 Shapes and Attributes 5
19.2.2 Shapes and Attributes 5
19.2.3 Flag of Japan 1
19.2.4 Flag of Poland 5
19.2.5 Flag of [your choice!] 5
19.3 Creating Graphics Using Variables
19.3.1 Creating Graphics Using Variables 1
19.3.2 Creating Graphics Using Variables 5
19.3.3 Flag of Japan Using Variables 1
19.3.4 Creating Shapes 1
19.3.5 Snowman 5
19.3.6 Ghost 10
19.4 Using Functions in Graphics
19.4.1 Using Functions in Graphics 5
19.4.2 Using Functions in Graphics 5
19.4.3 Balloons 5
19.4.4 Vertical Lines 5
19.4.5 Stoplight 5
19.4.6 Ghost Invasion 10
19.5 Using Loops in Graphics
19.5.1 Using Loops in Graphics 5
19.5.2 Using Loops in Graphics 5
19.5.3 Phone Signal 5
19.5.4 The Worm 5
19.5.5 Growing Circles 5
19.5.6 Sidewalk 5
19.6 Graphics Challenges
19.6.1 Block Tower 5