PythonPython · Bytes catalog

Screen Python candidates on real starter repos

59 short Python tasks, each shipping with a public test file and a language-specific runner. Candidates work in their own style; reviewers see how the code actually hangs together.

Starter
38
Standard
18
Advanced
3
Catalog
59 Python bytes
Page 1 of 2
Alarm Beacon
Featured
PythonPythonStarter~2h

Alarm Beacon

Your task is to convert a signal code number into a string of beacon alert patterns.

alarm_beacon.py
alarm_beacon_test.py
Open byte →
Alarm Chime
PythonPython
Starter~2h
Alarm Chime

Your task is to convert an alert code number into a string of alarm chime sounds.

alarm_chime.py
alarm_chime_test.py
Alert Priority
PythonPython
Starter~2h
Alert Priority

Your team maintains an internal alert triage service. Each incoming alert carries five severity tags — tokens composed of a level indicator and a category code (e.g. 4S 5H 7C 8D JC). The ranking rules for these tag sets follow standard poker hand rankings.

alert_priority.py
alert_priority_test.py
Alias Clusters
PythonPython
Starter~2h
Alias Clusters

In a user identity system, an alias cluster is a group of usernames that share exactly the same letters in a different arrangement. Two usernames belong to the same cluster if one can be formed by rearranging the letters of the other.

alias_clusters.py
alias_clusters_test.py
Astral Pilot
PythonPython
Starter~2h
Astral Pilot

For an Astral Pilot simulation, each cadet begins by generating a pilot profile they can fly with.

astral_pilot.py
astral_pilot_test.py
Badge Points
PythonPython
Starter~2h
Badge Points

Given a word, compute the badge points for that word. You'll need these:

badge_points.py
badge_points_test.py
Bid Ranker
PythonPython
Standard~3h
Bid Ranker

Your team is building the ranking engine for an online auction platform. Each bid submitted to an auction carries five value tokens -- compact codes composed of a level indicator and a category letter (e.g. 4S 5H 7C 8D JC).

bid_ranker.py
bid_ranker_test.py
Billing Cycle
PythonPython
Starter~2h
Billing Cycle

An internal billing system assigns sequential period numbers to billing cycles. Some periods are designated as extended — they receive an extra processing day for reconciliation.

billing_cycle.py
billing_cycle_test.py
Bundle Pricing
PythonPython
Standard~3h
Bundle Pricing

An online retailer sells five distinct product SKUs. Each item costs $8 at full price. To encourage bundle purchases, the retailer offers tiered discounts when a customer buys distinct items together:

bundle_pricing.py
bundle_pricing_test.py
Cargo Balance
PythonPython
Starter~2h
Cargo Balance

Your task is to maximize the value of a cargo load without exceeding the hold's weight limit.

cargo_balance.py
cargo_balance_test.py
Codec Bridge
PythonPython
Standard~3h
Codec Bridge

Convert an encoded payload, represented as a sequence of symbol values in one radix, to any other radix.

codec_bridge.py
codec_bridge_test.py
Cohort Roster
PythonPython
Starter~2h
Cohort Roster

You are building a roster system for a developer training academy. Participants are assigned to numbered cohorts based on their experience track. The program coordinator needs to view participants grouped by cohort, with each cohort's list sorted alphabeticall…

cohort_roster.py
cohort_roster_test.py
Coin Combos
PythonPython
Standard~3h
Coin Combos

Correctly determine the fewest number of coins needed to make an exact target amount from a supplied denomination list.

coin_combos.py
coin_combos_test.py
Command Triplets
PythonPython
Starter~2h
Command Triplets

You are building a decoder for a legacy industrial robot controller. The controller receives a continuous stream of 3-character instruction codes. Each triplet maps to a named operation. When a HALT code is encountered, execution stops immediately.

command_triplets.py
command_triplets_test.py
Commit Jargon
PythonPython
Starter~3h
Commit Jargon

Implement a function that encodes plain English text into commit jargon. Your team uses an internal shorthand for obfuscating draft commit messages before they reach the shared log. The encoding follows a small set of deterministic rules applied word-by-word.

commit_jargon.py
commit_jargon_test.py
Config Drift
PythonPython
Starter~2h
Config Drift

You are working on a small internal tool that compares two configuration snapshots.

config_diff.py
config_diff_test.py
Contact Cleanup
PythonPython
Starter~2h
Contact Cleanup

You are cleaning imported contact records before they are saved into a CRM. Each record includes a freeform phone field entered by a human, so the data can contain spaces, dots, parentheses, hyphens, and an optional leading country code of 1.

contact_number.py
contact_number_test.py
Countdown Carol
PythonPython
Standard~3h
Countdown Carol

Output the lyrics to 'The Twelve Days of Christmas'. ``text On the first day of Christmas my true love gave to me: a Partridge in a Pear Tree.

twelve_days.py
twelve_days_test.py
Coverage Check
PythonPython
Starter~2h
Coverage Check

Determine if a text sample has full alphabet coverage. A sample with full coverage uses every letter of the alphabet at least once. The best-known example is: > The quick brown fox jumps over the lazy dog.

coverage_check.py
coverage_check_test.py
Delivery Zones
PythonPython
Starter~2h
Delivery Zones

Classify a delivery drop-off location into the correct fee tier based on its distance from the warehouse.

delivery_zones.py
delivery_zones_test.py
Deploy Window
PythonPython
Starter~2h
Deploy Window

Calculate the date of scheduled deployment windows. Many engineering teams run deployments on a fixed recurring weekday each month. In this exercise you will take a description of a deployment window and return the actual date it falls on.

deploy_window.py
deploy_window_test.py
Depot Shuttle
PythonPython
Starter~2h
Depot Shuttle

Your assignment is to write a depot shuttle navigator. A large distribution depot uses automated shuttles to move packages between loading bays. The depot's control system needs a program to verify shuttle movements before they are dispatched.

depot_shuttle.py
depot_shuttle_test.py
Expense Report
PythonPython
Standard~3h
Expense Report

Refactor an expense report formatter. The expense report exercise is a refactoring exercise. There is code that prints a nicely formatted expense report, given a locale (American or Dutch) and a currency (US dollar or euro).

expense_report.py
expense_report_test.py
Flag Sequence
PythonPython
Starter~2h
Flag Sequence

A maritime signal station transmits messages using a sequence of signal flags. A numeric transmission code determines which flags to raise and in what order.

flag_sequence.py
flag_sequence_test.py
Grid Claim
PythonPython
Standard~3h
Grid Claim

Determine which team controls each zone on a contested grid. In a grid claim competition two teams—Black (B) and White (W)—place markers on a rectangular grid. A contiguous group of empty cells that is completely enclosed (horizontally and vertically) by one t…

grid_claim.py
grid_claim_test.py
Grid Crossovers
PythonPython
Starter~2h
Grid Crossovers

Identify grid crossovers in an operations matrix. A grid crossover is a cell whose value is greater than or equal to every value in its row and less than or equal to every value in its column.

grid_crossovers.py
grid_crossovers_test.py
Grid Hunt
PythonPython
Standard~3h
Grid Hunt

In a grid hunt challenge you scan a rectangular field of characters to locate hidden target strings.

grid_hunt.py
grid_hunt_test.py
Hailstone Cascade
PythonPython
Starter~2h
Hailstone Cascade

Implement a steps function that computes how many cascade steps a hailstone particle takes to reach unit mass.

hailstone_cascade.py
hailstone_cascade_test.py
Help Desk Bot
PythonPython
Starter~2h
Help Desk Bot

Implement the response logic for a basic help-desk chatbot. The bot handles incoming support messages and replies with one of five canned responses based on the message content.

help_desk_bot.py
help_desk_bot_test.py
Incident Chain
PythonPython
Starter~2h
Incident Chain

An internal post-mortem tool reconstructs incident chains. Each step in the chain describes an event and how it caused the next, building a cumulative narrative from the root cause forward.

incident_chain.py
incident_chain_test.py