Python bootcamp
Question on the left. Your Python on the right. Check it.
Each lab is one problem: read the spec, write a solution, press Run, then Check. Hints stay closed. The correct code is there when you need it. the Python worker grades stdout against hidden tests.
50 labs · 26 easy · 24 medium · progress stays in this browser.
- Read the questionInput, output, and a short example. Same shape as a classroom worksheet.
- Write Python, then RunThe starter is a skeleton. Change it, then see what happens.
- Check, or open a hintCheck runs every test. Hint and correct code stay folded until you open them.
Labs
Work them in order, or jump ahead when you are ready.
- 01easy
Hello, Python
Output · 5 min
Open lab - 02easy
Sum two numbers
Input · 8 min
Open lab - 03easy
Celsius to Fahrenheit
Math · 8 min
Open lab - 04easy
Even or odd
If Else · 8 min
Open lab - 05easy
Letter grade
If Else · 10 min
Open lab - 06easy
Largest of three
If Else · 10 min
Open lab - 07easy
Times table
For Loops · 10 min
Open lab - 08easy
Squares with a comprehension
List Comprehension · 10 min
Open lab - 09easy
Sum 1 to n
While Loops · 10 min
Open lab - 10medium
FizzBuzz
For Loops · 12 min
Open lab - 11medium
Fibonacci sequence
While Loops · 12 min
Open lab - 12easy
Count the words
Strings · 8 min
Open lab - 13easy
Count the vowels
Strings · 10 min
Open lab - 14easy
Reverse a word
Strings · 8 min
Open lab - 15medium
Palindrome check
Strings · 10 min
Open lab - 16medium
Anagram check
Strings · 12 min
Open lab - 17medium
Maximum in a list
Lists · 12 min
Open lab - 18easy
Average of a list
Lists · 10 min
Open lab - 19medium
Second largest
Lists · 12 min
Open lab - 20medium
Unique and sorted
Sets · 10 min
Open lab - 21medium
Word frequency
Dictionaries · 15 min
Open lab - 22medium
Factorial
Functions · 12 min
Open lab - 23medium
Safe division
Try Except · 12 min
Open lab - 24medium
Rectangle class
Classes · 15 min
Open lab - 25easy
Leap year
If Else · 10 min
Open lab - 26easy
Sum of digits
While Loops · 10 min
Open lab - 27easy
Countdown
For Loops · 8 min
Open lab - 28easy
Skip multiples of 3
For Loops · 10 min
Open lab - 29medium
Prime check
Functions · 12 min
Open lab - 30medium
Greatest common divisor
Functions · 12 min
Open lab - 31easy
Star triangle
For Loops · 10 min
Open lab - 32easy
Keep the evens
List Comprehension · 10 min
Open lab - 33easy
Reverse a list
Lists · 8 min
Open lab - 34easy
Min and max
Lists · 8 min
Open lab - 35medium
Sort a list
Sort Lists · 10 min
Open lab - 36medium
Linear search
Linear Search · 12 min
Open lab - 37medium
Set intersection
Sets · 12 min
Open lab - 38medium
Dictionary lookup
Dictionaries · 12 min
Open lab - 39easy
Swap with a tuple
Tuples · 8 min
Open lab - 40medium
Power by recursion
Functions · 12 min
Open lab - 41medium
Binary search
Binary Search · 15 min
Open lab - 42medium
Matching brackets
Stacks · 15 min
Open lab - 43easy
Title case
String Methods · 8 min
Open lab - 44medium
Collatz steps
While Loops · 12 min
Open lab - 45medium
Zip two lists
Iterators · 12 min
Open lab - 46easy
Days in a month
Match · 10 min
Open lab - 47medium
Sort by length
Lambda · 12 min
Open lab - 48easy
Absolute difference
Math · 8 min
Open lab - 49easy
Median of three
Lists · 10 min
Open lab - 50medium
ROT13 cipher
Strings · 12 min
Open lab