Advanced · 4 labs
Clean usernames, build URL slugs, format certificates, and count long words — string tools Sythra uses every day.
Total labs
4
Completed
0
Remaining
4
Progress
0%
In this track
0 / 4 done
Signup forms send messy usernames. Sythra stores a clean version. Write clean_username(raw). Rules - strip leading/trailing spaces - lowercase the result Examples - clean_username(" Asha ") → "asha" - clean_username("RAVI") → "ravi" - clean_username(" ") → ""
Not started · 0%
Lesson titles become URL slugs on Sythra. Write make_slug(title). Rules - lowercase - remove ! ? . , ' - split on spaces and join with - Examples - make_slug("Intro to Loops!") → "intro-to-loops" - make_slug(" Lists and Sets ") → "lists-and-sets"
Not started · 0%
Certificates print a short display name. Write certificate_name(full_name). Rules - "asha rao" → "Asha R." - Single name "maya" → "Maya" - Collapse extra spaces first Examples - certificate_name("asha rao") → "Asha R." - certificate_name("neo") → "Neo" - certificate_name(" ravi kumar ") → "Ravi K."
Not started · 0%
Sythra's writing tips count long words in a learner note. Write: 1. count_long_words(text, min_len) — how many words have length >= min_len 2. longest_word(text) — the first longest word Ignore punctuation stuck to the ends of words (.,!?;:). Examples - count_long_words("Loops are powerful!", 6) → 1 (powerful) - longest_word("hi loops lists") → "loops" - empty text → 0 and ""
Not started · 0%