← back to unit
Medium
# puzzle gauntlet medium
Count the Camel Humps
Programmers squish words together likeThisFamousStyle — each capital letter starts a new word. How many words hide inside? 🐫
You get a name in camelCase (starts lowercase, no spaces). Print how many words it contains.
Example:
Input: name = "campfireSongTime"
Output: 3
There are 2 capital letters (S, T), and adding 1 for the starting word gives 3 words total.
💡 need a hint?
pg-camel-humps.py🔒 given lines are locked — write your code in between
loading...