Python Practice
Real-life problems solved with Python. Read the scenario, write the program, and see your answer checked against hidden tests.
Electricity bill calculator
Basics & Math
Solve challengeRestaurant bill with GST and tip
Basics & Math
Solve challengeCount the vowels in a customer message
Strings
Solve challengeThe cashier who always grabs the biggest note
Algorithms
Solve challengeFind the best 7 days of the season
Algorithms
Solve challengeDoes this template close properly?
Algorithms
Solve challengeLongest streak with stock on the shelf
Algorithms
Solve challengeBuild the league table with tiebreakers
Lists & Dictionaries
Solve challengeThe 90th percentile delivery promise
Data Analysis
Solve challengeEmergency room wait-time summary
Data Analysis
Solve challengeDid the new checkout button win?
Data Analysis
Solve challengeSpot the odd card payments
Data Analysis
Solve challengeAd spend versus sales: fit the line
Data Analysis
Solve challengeVAT across borders
Basics & Math
Solve challengeWholesale price tiers and free shipping
Basics & Math
Solve challengeOvertime on the factory floor
Simulation & Finance
Solve challengeLeap days in a long contract
Dates & Time
Solve challengeHow many cups to break even?
Simulation & Finance
Solve challengeWet days in a world city
Files & CSV
Solve challengeHow late is this airline?
Files & CSV
Solve challengeBig baskets by country
Files & CSV
Solve challengeWhich month did a channel convert?
Data Analysis
Solve challengePeak power month of a region
Files & CSV
Solve challengeTidy up the customer names
Strings
Solve challengeWhich mail providers do our subscribers use?
Lists & Dictionaries
Solve challengeShow only the last four digits
Strings
Solve challengeCollect the campaign hashtags
Strings
Solve challengeRun-length squeeze for sensor strings
Strings
Solve challengeSales report for a category
Files & CSV
Solve challengeMost common words in customer feedback
Lists & Dictionaries
Solve challengeStudents with attendance shortage
Lists & Dictionaries
Solve challengeHow many loading docks does the warehouse need?
Algorithms
Solve challengeSmallest truck that clears the backlog in D days
Algorithms
Solve challengeHow many periods hit the revenue target exactly?
Lists & Dictionaries
Solve challengeFewest connections between two cities
Algorithms
Solve challengeTop K trending hashtags of the match
Lists & Dictionaries
Solve challengeSatellite map: islands left by the flood
Algorithms
Solve challengeForecast bake-off: naive, average or smoothing?
Data Analysis
Solve challengeRFM scoring for a London fashion shop
Lists & Dictionaries
Solve challengeCohort retention for a language-learning app
Lists & Dictionaries
Solve challengeABC classification for a Rotterdam warehouse
Lists & Dictionaries
Solve challengeCheck-in desks at Istanbul Airport
Simulation & Finance
Solve challengeWhich streaming plan is worth the ad budget?
Simulation & Finance
Solve challengeIncome tax slabs from a rate table
Basics & Math
Solve challengeCurrency desk conversion ledger
Simulation & Finance
Solve challengeLoan EMI with an adjusted last payment
Simulation & Finance
Solve challengeMid-cycle plan change
Dates & Time
Solve challengeSLA deadline in business days
Dates & Time
Solve challengeTenure report and next work anniversary
Dates & Time
Solve challengeMonths until the savings goal
Simulation & Finance
Solve challengeSlowest hospital departments at rush hour
Lists & Dictionaries
Solve challengeBuild the league table
Data Analysis
Solve challengeSupport team scorecard (two files)
Data Analysis
Solve challengeDays a stock beats its moving average
Simulation & Finance
Solve challengeMonth-over-month swings in energy demand
Data Analysis
Solve challengeLongest heatwave streak
Data Analysis
Solve challengeOrder value histogram
Data Analysis
Solve challengeWhich microservices are on fire?
Lists & Dictionaries
Solve challengeDial it right: phone number normaliser
Strings
Solve challengeIBAN checksum inspector
Strings
Solve challengeHackathon leaderboard with dense ranks
Lists & Dictionaries
Solve challengeThrottle the noisy API clients
Simulation & Finance
Solve challengeDissect the tracking URLs
Strings
Solve challengeWhat are customers really saying?
Lists & Dictionaries
Solve challengeDetect duplicate card transactions
Algorithms
Solve challengeMerge overlapping room bookings
Algorithms
Solve challengeBest day to buy and sell
Algorithms
Solve challengeSpend the ad budget for the most leads
Algorithms
Solve challengeContract redline: how much really changed?
Algorithms
Solve challengeCheapest fare and how many ways to fly it
Algorithms
Solve challengeBuild schedule for a new hospital wing
Algorithms
Solve challengeWatching a social network grow its biggest circle
Algorithms
Solve challengeEmergency room: who gets the next doctor?
Algorithms
Solve challengeReorder point simulation for a Lagos pharmacy chain
Simulation & Finance
Solve challengeNearest-driver dispatch in Jakarta
Simulation & Finance
Solve challengeHow many extra tickets can a flight sell?
Simulation & Finance
Solve challengeBuild the league table with head-to-head tie-breaks
Lists & Dictionaries
Solve challengeAnomalies that do not poison the baseline
Data Analysis
Solve challengeBlack Friday forecast: seasonality plus trend
Data Analysis
Solve challengeFIFO inventory: cost of goods sold
Simulation & Finance
Solve challengeTriangular currency arbitrage scanner
Algorithms
Solve challengeBreak-even with a sales mix and step costs
Simulation & Finance
Solve challengeRenewal schedule with plan upgrades
Dates & Time
Solve challengeHow much does a yearly prepayment save?
Simulation & Finance
Solve challengeHospital shift payroll with night and Sunday premiums
Simulation & Finance
Solve challengeSavings interest on daily balances
Dates & Time
Solve challengeClean the messy order export
Data Analysis
Solve challengeSpot the outlier flights
Data Analysis
Solve challengeWaiting-time percentiles by hospital site
Data Analysis
Solve challengeSchool league with shared ranks
Data Analysis
Solve challengeWeek-over-week traffic growth
Dates & Time
Solve challengeMaximum drawdown of a stock
Simulation & Finance
Solve challengeSLA breaches by ticket priority
Dates & Time
Solve challengePocket calculator with exact fractions
Algorithms
Solve challengeSessionise the clickstream
Dates & Time
Solve challengeBracket tags gone wrong
Algorithms
Solve challengeFind the customers who signed up twice
Algorithms
Solve challengeCheckout with three-for-two deals
Lists & Dictionaries
Solve challengeA tiny mail-merge template engine
Strings
Solve challengeRevenue rollup from nested JSON orders
Data Analysis
Solve challenge