Build a Python Slugify Utility
Write a Python slugify function that lowercases words, preserves digits, collapses punctuation into single hyphens, and handles empty input.
Python
Challenge overview
- Format
- Build a Function
- Category
- Python
- Difficulty
- Beginner
pythonstringsregular-expressionsnormalization
Keep practicing
More coding challenges
React · Intermediate
Build a Recipe Serving Scaler
Build a React recipe scaler that updates ingredient amounts from serving state, respects the 1 to 8 limits, and restores the original recipe.
View challengeHTML & CSS · Intermediate
Build a Responsive Product Grid
Turn a stacked product list into a three-column CSS Grid with consistent gaps, then collapse it to one column on screens up to 700px.
View challengeHTML & CSS · Beginner
Build a Semantic FAQ Card
Build a native FAQ disclosure with semantic details and summary elements, then style the question and answer as a compact dark card.
View challenge

