Loading the task…
In camelCase, several words are written together: the first starts with a lowercase letter, and each next word starts with an uppercase letter. The function camelcase receives a string s in this format. Count the words in the string: the first word is already present, and every uppercase letter starts a new one. Return that count.
"saveChangesInTheEditor"5"oneWord"2"word"1def camelcase(s: str) -> int:
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.