Skip to main content

Practice · 1 of 2

Toolkit: Text Stats

CHALLENGE
Difficulty: beginner+25 XP

Build analyze(text) returning a dict with keys words (word count), longest (the longest word — ties: the EARLIEST), and upper (the text in uppercase). Print analyze(sample) for sample = \"Code Journey teaches real Python skills\" as three lines: words / longest / upper value.

Back to lesson: Practice: Mini Build: Utility Toolkit