python
beginner
हल किया
2026-11-17 को समाप्त
Slugify a title
Write slugify(title) that turns a page title into a URL slug, like the ones PandaDev uses for tracks and posts.
- Lowercase; letters and digits only, separated by single hyphens.
- Accented letters lose their accents:
"Café Crème"becomes"cafe-creme". - No hyphens at the start or end.
Acceptance criteria
slugify(" Hello, World! ")returns"hello-world".- The tests at the bottom print
All tests passed.
Hint: unicodedata.normalize("NFKD", ...) splits letters from their accents.
अब तक 0 लोगों ने हल किया।
एडिटरCtrl + Enter
जब टेस्ट "All tests passed" दिखाते हैं, तो चैलेंज इस ब्राउज़र में हल के रूप में चिह्नित हो जाता है।
अपना समाधान समीक्षा के लिए भेजें