Loading...

The Style Guide

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

A content publishing platform formats article titles according to style guide rules where minor words like articles and conjunctions should not be capitalized unless they appear first. Write a function that takes a string and applies smart title case, with the first word always capitalized and short connector words lowercased elsewhere.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.