Python Practice

Real-life problems solved with Python. Read the scenario, write the program, and see your answer checked against hidden tests.

Leaderboard
Basic10 pts

Electricity bill calculator

Basics & Math

Solve challenge
Basic10 pts

Restaurant bill with GST and tip

Basics & Math

Solve challenge
Basic10 pts

Count the vowels in a customer message

Strings

Solve challenge
Basic10 pts

The cashier who always grabs the biggest note

Algorithms

Solve challenge
Basic10 pts

Find the best 7 days of the season

Algorithms

Solve challenge
Basic10 pts

Does this template close properly?

Algorithms

Solve challenge
Basic10 pts

Longest streak with stock on the shelf

Algorithms

Solve challenge
Basic10 pts

Build the league table with tiebreakers

Lists & Dictionaries

Solve challenge
Basic10 pts

The 90th percentile delivery promise

Data Analysis

Solve challenge
Basic10 pts

Emergency room wait-time summary

Data Analysis

Solve challenge
Basic10 pts

Did the new checkout button win?

Data Analysis

Solve challenge
Basic10 pts

Spot the odd card payments

Data Analysis

Solve challenge
Basic10 pts

Ad spend versus sales: fit the line

Data Analysis

Solve challenge
Basic10 pts

VAT across borders

Basics & Math

Solve challenge
Basic10 pts

Wholesale price tiers and free shipping

Basics & Math

Solve challenge
Basic10 pts

Overtime on the factory floor

Simulation & Finance

Solve challenge
Basic10 pts

Leap days in a long contract

Dates & Time

Solve challenge
Basic10 pts

How many cups to break even?

Simulation & Finance

Solve challenge
Basic10 pts

Wet days in a world city

Files & CSV

Solve challenge
Basic10 pts

How late is this airline?

Files & CSV

Solve challenge
Basic10 pts

Big baskets by country

Files & CSV

Solve challenge
Basic10 pts

Which month did a channel convert?

Data Analysis

Solve challenge
Basic10 pts

Peak power month of a region

Files & CSV

Solve challenge
Basic10 pts

Tidy up the customer names

Strings

Solve challenge
Basic10 pts

Which mail providers do our subscribers use?

Lists & Dictionaries

Solve challenge
Basic10 pts

Show only the last four digits

Strings

Solve challenge
Basic10 pts

Collect the campaign hashtags

Strings

Solve challenge
Basic10 pts

Run-length squeeze for sensor strings

Strings

Solve challenge
Intermediate25 pts

Sales report for a category

Files & CSV

Solve challenge
Intermediate25 pts

Most common words in customer feedback

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Students with attendance shortage

Lists & Dictionaries

Solve challenge
Intermediate25 pts

How many loading docks does the warehouse need?

Algorithms

Solve challenge
Intermediate25 pts

Smallest truck that clears the backlog in D days

Algorithms

Solve challenge
Intermediate25 pts

How many periods hit the revenue target exactly?

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Fewest connections between two cities

Algorithms

Solve challenge
Intermediate25 pts

Top K trending hashtags of the match

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Satellite map: islands left by the flood

Algorithms

Solve challenge
Intermediate25 pts

Forecast bake-off: naive, average or smoothing?

Data Analysis

Solve challenge
Intermediate25 pts

RFM scoring for a London fashion shop

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Cohort retention for a language-learning app

Lists & Dictionaries

Solve challenge
Intermediate25 pts

ABC classification for a Rotterdam warehouse

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Check-in desks at Istanbul Airport

Simulation & Finance

Solve challenge
Intermediate25 pts

Which streaming plan is worth the ad budget?

Simulation & Finance

Solve challenge
Intermediate25 pts

Income tax slabs from a rate table

Basics & Math

Solve challenge
Intermediate25 pts

Currency desk conversion ledger

Simulation & Finance

Solve challenge
Intermediate25 pts

Loan EMI with an adjusted last payment

Simulation & Finance

Solve challenge
Intermediate25 pts

Mid-cycle plan change

Dates & Time

Solve challenge
Intermediate25 pts

SLA deadline in business days

Dates & Time

Solve challenge
Intermediate25 pts

Tenure report and next work anniversary

Dates & Time

Solve challenge
Intermediate25 pts

Months until the savings goal

Simulation & Finance

Solve challenge
Intermediate25 pts

Slowest hospital departments at rush hour

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Build the league table

Data Analysis

Solve challenge
Intermediate25 pts

Support team scorecard (two files)

Data Analysis

Solve challenge
Intermediate25 pts

Days a stock beats its moving average

Simulation & Finance

Solve challenge
Intermediate25 pts

Month-over-month swings in energy demand

Data Analysis

Solve challenge
Intermediate25 pts

Longest heatwave streak

Data Analysis

Solve challenge
Intermediate25 pts

Order value histogram

Data Analysis

Solve challenge
Intermediate25 pts

Which microservices are on fire?

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Dial it right: phone number normaliser

Strings

Solve challenge
Intermediate25 pts

IBAN checksum inspector

Strings

Solve challenge
Intermediate25 pts

Hackathon leaderboard with dense ranks

Lists & Dictionaries

Solve challenge
Intermediate25 pts

Throttle the noisy API clients

Simulation & Finance

Solve challenge
Intermediate25 pts

Dissect the tracking URLs

Strings

Solve challenge
Intermediate25 pts

What are customers really saying?

Lists & Dictionaries

Solve challenge
Expert50 pts

Detect duplicate card transactions

Algorithms

Solve challenge
Expert50 pts

Merge overlapping room bookings

Algorithms

Solve challenge
Expert50 pts

Best day to buy and sell

Algorithms

Solve challenge
Expert50 pts

Spend the ad budget for the most leads

Algorithms

Solve challenge
Expert50 pts

Contract redline: how much really changed?

Algorithms

Solve challenge
Expert50 pts

Cheapest fare and how many ways to fly it

Algorithms

Solve challenge
Expert50 pts

Build schedule for a new hospital wing

Algorithms

Solve challenge
Expert50 pts

Watching a social network grow its biggest circle

Algorithms

Solve challenge
Expert50 pts

Emergency room: who gets the next doctor?

Algorithms

Solve challenge
Expert50 pts

Reorder point simulation for a Lagos pharmacy chain

Simulation & Finance

Solve challenge
Expert50 pts

Nearest-driver dispatch in Jakarta

Simulation & Finance

Solve challenge
Expert50 pts

How many extra tickets can a flight sell?

Simulation & Finance

Solve challenge
Expert50 pts

Build the league table with head-to-head tie-breaks

Lists & Dictionaries

Solve challenge
Expert50 pts

Anomalies that do not poison the baseline

Data Analysis

Solve challenge
Expert50 pts

Black Friday forecast: seasonality plus trend

Data Analysis

Solve challenge
Expert50 pts

FIFO inventory: cost of goods sold

Simulation & Finance

Solve challenge
Expert50 pts

Triangular currency arbitrage scanner

Algorithms

Solve challenge
Expert50 pts

Break-even with a sales mix and step costs

Simulation & Finance

Solve challenge
Expert50 pts

Renewal schedule with plan upgrades

Dates & Time

Solve challenge
Expert50 pts

How much does a yearly prepayment save?

Simulation & Finance

Solve challenge
Expert50 pts

Hospital shift payroll with night and Sunday premiums

Simulation & Finance

Solve challenge
Expert50 pts

Savings interest on daily balances

Dates & Time

Solve challenge
Expert50 pts

Clean the messy order export

Data Analysis

Solve challenge
Expert50 pts

Spot the outlier flights

Data Analysis

Solve challenge
Expert50 pts

Waiting-time percentiles by hospital site

Data Analysis

Solve challenge
Expert50 pts

School league with shared ranks

Data Analysis

Solve challenge
Expert50 pts

Week-over-week traffic growth

Dates & Time

Solve challenge
Expert50 pts

Maximum drawdown of a stock

Simulation & Finance

Solve challenge
Expert50 pts

SLA breaches by ticket priority

Dates & Time

Solve challenge
Expert50 pts

Pocket calculator with exact fractions

Algorithms

Solve challenge
Expert50 pts

Sessionise the clickstream

Dates & Time

Solve challenge
Expert50 pts

Bracket tags gone wrong

Algorithms

Solve challenge
Expert50 pts

Find the customers who signed up twice

Algorithms

Solve challenge
Expert50 pts

Checkout with three-for-two deals

Lists & Dictionaries

Solve challenge
Expert50 pts

A tiny mail-merge template engine

Strings

Solve challenge
Expert50 pts

Revenue rollup from nested JSON orders

Data Analysis

Solve challenge