...

Chapter 5 - Python Quest

Arrays And Strings

Walk through lists and words, build new answers, and compare positions.

XP
0Level 1
Stars
0/15quest stars
Combo
0clean runs
Rank
Seed0/160 Python score
List and string loops

Word Length Lab

100 XP

A library helper measures words before putting them on tiny labels.

Write word_lengths(words) so it returns a list with the length of each word.

Sample checks

word_lengths(["cat","banana",""])returns[3,6,0]

Explanation: words can have different lengths

word_lengths([])returns[]

Explanation: no words means no lengths

Hint

Hints are ready when you want one.

Lesson reference

Review: Looping through a list

Your Python

word_lengths

Loading editor

Judge

Ready

0/4

Run your code when it feels ready.