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.

  1. Read the questionInput, output, and a short example. Same shape as a classroom worksheet.
  2. Write Python, then RunThe starter is a skeleton. Change it, then see what happens.
  3. 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.

  1. 01easy

    Hello, Python

    Output · 5 min

    Open lab
  2. 02easy

    Sum two numbers

    Input · 8 min

    Open lab
  3. 03easy

    Celsius to Fahrenheit

    Math · 8 min

    Open lab
  4. 04easy

    Even or odd

    If Else · 8 min

    Open lab
  5. 05easy

    Letter grade

    If Else · 10 min

    Open lab
  6. 06easy

    Largest of three

    If Else · 10 min

    Open lab
  7. 07easy

    Times table

    For Loops · 10 min

    Open lab
  8. 08easy

    Squares with a comprehension

    List Comprehension · 10 min

    Open lab
  9. 09easy

    Sum 1 to n

    While Loops · 10 min

    Open lab
  10. 10medium

    FizzBuzz

    For Loops · 12 min

    Open lab
  11. 11medium

    Fibonacci sequence

    While Loops · 12 min

    Open lab
  12. 12easy

    Count the words

    Strings · 8 min

    Open lab
  13. 13easy

    Count the vowels

    Strings · 10 min

    Open lab
  14. 14easy

    Reverse a word

    Strings · 8 min

    Open lab
  15. 15medium

    Palindrome check

    Strings · 10 min

    Open lab
  16. 16medium

    Anagram check

    Strings · 12 min

    Open lab
  17. 17medium

    Maximum in a list

    Lists · 12 min

    Open lab
  18. 18easy

    Average of a list

    Lists · 10 min

    Open lab
  19. 19medium

    Second largest

    Lists · 12 min

    Open lab
  20. 20medium

    Unique and sorted

    Sets · 10 min

    Open lab
  21. 21medium

    Word frequency

    Dictionaries · 15 min

    Open lab
  22. 22medium

    Factorial

    Functions · 12 min

    Open lab
  23. 23medium

    Safe division

    Try Except · 12 min

    Open lab
  24. 24medium

    Rectangle class

    Classes · 15 min

    Open lab
  25. 25easy

    Leap year

    If Else · 10 min

    Open lab
  26. 26easy

    Sum of digits

    While Loops · 10 min

    Open lab
  27. 27easy

    Countdown

    For Loops · 8 min

    Open lab
  28. 28easy

    Skip multiples of 3

    For Loops · 10 min

    Open lab
  29. 29medium

    Prime check

    Functions · 12 min

    Open lab
  30. 30medium

    Greatest common divisor

    Functions · 12 min

    Open lab
  31. 31easy

    Star triangle

    For Loops · 10 min

    Open lab
  32. 32easy

    Keep the evens

    List Comprehension · 10 min

    Open lab
  33. 33easy

    Reverse a list

    Lists · 8 min

    Open lab
  34. 34easy

    Min and max

    Lists · 8 min

    Open lab
  35. 35medium

    Sort a list

    Sort Lists · 10 min

    Open lab
  36. 36medium

    Linear search

    Linear Search · 12 min

    Open lab
  37. 37medium

    Set intersection

    Sets · 12 min

    Open lab
  38. 38medium

    Dictionary lookup

    Dictionaries · 12 min

    Open lab
  39. 39easy

    Swap with a tuple

    Tuples · 8 min

    Open lab
  40. 40medium

    Power by recursion

    Functions · 12 min

    Open lab
  41. 41medium

    Binary search

    Binary Search · 15 min

    Open lab
  42. 42medium

    Matching brackets

    Stacks · 15 min

    Open lab
  43. 43easy

    Title case

    String Methods · 8 min

    Open lab
  44. 44medium

    Collatz steps

    While Loops · 12 min

    Open lab
  45. 45medium

    Zip two lists

    Iterators · 12 min

    Open lab
  46. 46easy

    Days in a month

    Match · 10 min

    Open lab
  47. 47medium

    Sort by length

    Lambda · 12 min

    Open lab
  48. 48easy

    Absolute difference

    Math · 8 min

    Open lab
  49. 49easy

    Median of three

    Lists · 10 min

    Open lab
  50. 50medium

    ROT13 cipher

    Strings · 12 min

    Open lab

FAQ: Python Bootcamp Labs

Common questions about this page.

What are StudyGrid Python Labs?

Python Labs are bootcamp-style problems at /python/labs. The question, examples, and a folded hint sit on the left. You write Python on the right, press Run or Preview, then Check. You can open the correct code if you get stuck.

Should I run python bootcamp labs examples locally for better learning?

Yes. Use the browser editor on StudyGrid for a quick check, then Download the example and run it on your computer. Local runs show real errors and the real toolchain, which is one of the fastest ways to learn python bootcamp labs in this Python Labs Python lesson (Python Bootcamp Labs).

How does Check work in Python Labs?

Check grades your work with the in-browser Python worker. If every test passes, the lab is marked complete in this browser.

Can I see a hint or the correct Python solution?

Yes. Hint and Show correct code stay closed until you open them. You can load the solution into the editor and still press Check.

Do I need to install extra software for Python Labs?

No. Labs run in the browser, the same way the Python editor does at /try.

Is the Python bootcamp free?

Yes. The labs on StudyGrid (studygrid.in) are free. Progress is stored in this browser only.