Skip to main content

Practice ยท 1 of 2

Toolkit: Text Stats

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.

Difficulty: beginner

Back to lesson: Practice: Mini Build: Utility Toolkit