Loading...
Loading...
Loading...
A blog turns a title into a URL slug: all lower case, words joined by single hyphens.
Read a title and print its slug. Extra spaces must not create extra hyphens.
Example
Input
Learn Python Fast
Output
learn-python-fast
Try the problem first. Open one hint at a time.
Lower-case the title, then split it into words.
Join the words with "-".
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor