Daily Python Challenge
A new Python challenge every day
One problem a day, from quick warm-ups to real puzzles. Solve it in your browser, check it against hidden tests, and keep your streak going. Free, no sign-up.
Day streak
Best streak
of 1 solved
Count the Words
Count how many words are in a sentence.
Next challenge
--:--:--
until Day 2
This week
How the daily challenge works
- 1
Read the problem
Each challenge asks for one Python function, with worked examples.
- 2
Write and test
Run the examples as often as you like, then submit to run the hidden tests.
- 3
Come back tomorrow
A new challenge every day. Solve each on its day to grow your streak.
Frequently asked questions
When does a new challenge come out?
Every day at 00:00 UTC (05:45 in Nepal, 19:00 the evening before in New York). The countdown on this page shows how long is left.
How does the streak work?
Solve a day's challenge within 24 hours of its release and it counts towards your streak. Solving today's keeps it going; missing a day starts it again. Your progress is saved in this browser.
What if I miss a day?
Every earlier challenge stays open, so you can still solve it and learn from it. It just won't count towards your streak.
How hard are the challenges?
They mix very easy warm-ups, everyday problems with strings and lists, interview-style puzzles and a few hard algorithm challenges. Each one shows its difficulty, and every challenge has hints and an explained solution.
Do I need to install Python?
No. Your code runs in your browser with real Python 3.12, so it works on a school computer, a laptop or a phone.
Want more right now? Work through the 32 Python challenges and earn free certificates, or learn the basics in the free Python course.