Loading...
Tokenize
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
Problem
Log lines sometimes arrive with irregular whitespace: multiple consecutive spaces or leading and trailing blanks. Split the string into tokens on whitespace and return a list of non-empty tokens.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.