easy +8 pts

Camel Case Converter

Transform a space-separated phrase into lower camelCase by lowercasing the first word and capitalizing subsequent words.

Write a function `to_camel_case(phrase)` that accepts a string `phrase` containing words separated by single spaces. The function should return the phrase converted to lower camelCase: the first word is converted to all lowercase, and each subsequent word is capitalized (first letter uppercase, remaining letters lowercase). All spaces are removed. The input will contain only lowercase and uppercase English letters and spaces. There will be no leading, trailing, or multiple consecutive spaces. The input will have at least one word. Implement the function exactly as described. The output must be a single string with no spaces.

Constraints

1 <= len(phrase) <= 100. Phrase contains only spaces and English letters. No leading/trailing spaces, no multiple consecutive spaces. At least one word.

Example

```python
>>> to_camel_case("hello world")
'helloWorld'
>>> to_camel_case("camel case converter")
'camelCaseConverter'
>>> to_camel_case("alreadyCamel")
'alreadycamel'
```
8 points ~10 min

Recent Submissions

No submissions yet — hit Run Tests to try!

Hints

Split the phrase into words using `.split()`.
Process the first word separately to ensure it is all lowercase.
For each subsequent word, capitalize the first letter and lowercase the rest, then join.
Python 3
All tests passed!
Test Results
Press Ctrl+Enter or click Run Tests to execute your code.