Please enable JavaScript to use CodeHS

CodeHS Practice Problems

Get familiar with coding using our Practice Problems.

Python Practice Problems

Basics

LEVEL 1

Practice: 1pt - Unopened Sum

Practice: 2pts - Unopened Splitting into Groups

Practice: 2pts - Unopened Odd Man Out

Practice: 2pts - Unopened Percentage

Practice: 2pts - Unopened Hours to Seconds

Practice: 2pts - Unopened Divisible By 10?

Practice: 2pts - Unopened Area of a Triangle

Practice: 2pts - Unopened Divisible By Value

Practice: 2pts - Unopened ERA

Practice: 1pt - Unopened The Identity Function

Practice: 1pt - Unopened Multiple Arguments

Practice: 2pts - Unopened Default Arguments

Practice: 1pt - Unopened Variable Arguments

Strings

LEVEL 1

Practice: 1pt - Unopened First Character

Practice: 2pts - Unopened Broken Caps Lock

Practice: 1pt - Unopened String Length

Practice: 3pts - Unopened Remove Index 2

Practice: 3pts - Unopened Remove Inside

Practice: 3pts - Unopened Remove Outside

Practice: 3pts - Unopened Replace with A

Practice: 3pts - Unopened Index 3

Math

LEVEL 1

Practice: 3pts - Unopened Difference

Practice: 3pts - Unopened Consecutive Number

Practice: 3pts - Unopened Sum Less than 100?

Practice: 3pts - Unopened Perimeter of a Rectangle

Practice: 3pts - Unopened Final Velocity

Practice: 3pts - Unopened Shipping Costs

Practice: 4pts - Unopened Money Counter

Practice: 4pts - Unopened Pythagorean's Theorem

Loops

LEVEL 1

Practice: 2pts - Unopened Count by 2

Practice: 3pts - Unopened How many times?

Practice: 2pts - Unopened Countdown

Practice: 2pts - Unopened Sum Numbers

Practice: 3pts - Unopened Average

Practice: 3pts - Unopened Factorial

Practice: 3pts - Unopened Shopping list

Lists

LEVEL 1

Practice: 2pts - Unopened Remove First

Practice: 2pts - Unopened Remove Last

Practice: 3pts - Unopened Remove Second

Practice: 2pts - Unopened Insert First

Practice: 2pts - Unopened Insert Last

Practice: 4pts - Unopened Insert Middle

Practice: 3pts - Unopened Add One

Practice: 3pts - Unopened Double

Dictionaries

LEVEL 1

Practice: 2pts - Unopened return value

Practice: 2pts - Unopened add key

Practice: 2pts - Unopened update key

Practice: 2pts - Unopened Dog's Color

Practice: 2pts - Unopened delete key

Practice: 4pts - Unopened add one

Practice: 2pts - Unopened return all of the keys

Practice: 3pts - Unopened switch the values

Practice: 3pts - Unopened Address Book

Strings

LEVEL 2

Practice: 5pts - Unopened Remove Final E

Practice: 4pts - Unopened Where's Waldo?

Practice: 6pts - Unopened Replace Like

Practice: 5pts - Unopened Switch the Words

Practice: 7pts - Unopened Split the String

Practice: 7pts - Unopened Double a Word

Math

LEVEL 2

Practice: 5pts - Unopened Highest of Three

Practice: 5pts - Unopened Basic Calculator

Practice: 5pts - Unopened Add All Values

Practice: 5pts - Unopened Add Odd Numbers

Practice: 6pts - Unopened Total Pay, Yearly

Practice: 4pts - Unopened Splitting the Check

Practice: 5pts - Unopened Road Trip Average Speed

Practice: 7pts - Unopened Total Pay, Monthly

Loops

LEVEL 2

Practice: 6pts - Unopened Fibonacci sequence

Practice: 5pts - Unopened Modified count by 2

Practice: 4pts - Unopened Is Divisible?

Practice: 4pts - Unopened Average Grade

Practice: 4pts - Unopened How Many Even?

Practice: 6pts - Unopened Stars

Practice: 5pts - Unopened Dice combinations

Practice: 6pts - Unopened Multiplication table

Lists

LEVEL 2

Practice: 3pts - Unopened Prepend Good

Practice: 3pts - Unopened Length of str

Practice: 4pts - Unopened Replace the Zeros

Practice: 5pts - Unopened Evens and Odds

Practice: 4pts - Unopened Filter out Zeros

Practice: 3pts - Unopened Sum List

Practice: 3pts - Unopened Multiply List

Dictionaries

LEVEL 2

Practice: 3pts - Unopened Summing Items

Practice: 6pts - Unopened Max Value

Practice: 5pts - Unopened Passwords

Practice: 5pts - Unopened Combine dictionaries

Practice: 6pts - Unopened Two Lists

Practice: 7pts - Unopened Invert

Practice: 5pts - Unopened Letter Count

Practice: 6pts - Unopened Word Count Tracker

Lists

LEVEL 3

Practice: 4pts - Unopened Filter out Evens

Practice: 4pts - Unopened Filter out Small Strings

Practice: 5pts - Unopened Keep the Ints

Practice: 4pts - Unopened Filter out Even Indices

Practice: 4pts - Unopened Join List

Practice: 5pts - Unopened No Duplicates

Practice: 4pts - Unopened Sum the Lengths

Practice: 5pts - Unopened Capitalize Even Letters

Practice: 5pts - Unopened Even Characters

Practice: 5pts - Unopened Only Capitals

Practice: 6pts - Unopened Vowel Count

Practice: 5pts - Unopened String Length Without Spaces

Practice: 5pts - Unopened S Count

Practice: 5pts - Unopened Add Spaces

Practice: 6pts - Unopened Add Secret Message

Practice: 7pts - Unopened Correct Capitalization

Practice: 6pts - Unopened Reverse String

CodeHS Practice FAQ

Still have questions? We’re happy to answer them, just reach out to hello@codehs.com!