⌘K
Flycodx

Standardize Road Name Format for BBMP Tracker

Standardize Road Name Format for BBMP Tracker

EasyStrings0% accepted

Ravi reports potholes using Bangalore's BBMP system. Road names are entered inconsistently in various cases: 'MG ROAD', 'mg road', 'Mg Road'. Standardize all road names to title case for database consistency.

Approach

Given a road name string in any case, convert it to title case where the first letter of each word is capitalized.

Input

mg road

Output

Mg Road
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3