Given words, use enumerate() to find the indices of all words that have more than 4 characters
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Given words, use enumerate() to find the indices of all words that have more than 4 characters. Collect the indices in a list called long_indices and print it.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.