daily_challenge.py
1
2
3
4
5
6
7
def score(difficulty, ok): if ok is False: return -5 return {'easy':10, 'medium':20, 'hard':30}[difficulty] print(score('medium', True)) # → 20
Challenge · explanation · news · tips
Daily Python learning, done right
Build better Python instincts
One daily challenge, clear explanations, fresh tech news, and practical tips.
Daily challenge
XP and streaks
News and tips
1 challenge/day
XP & streaks
News & tips
Daily Python challenges • Clear explanations • Curated news • Practical tips