Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

XLength #233

@oldoc63

Description

@oldoc63

Let's use the split method in a different way. We need a new function that is able to accept two inputs: one for a sentence and another for a number. The function returns True if every single word in the sentence has a length greater than or equal to the number provided. These are the steps:

  1. Define the function to accept two parameters, one string, and one number
  2. Split up the sentence into an array of words
  3. Loop through the words. If the length of any of the words is less than the provided number return False
  4. If we made it through the loop without returning False then return True

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions