Python
# Program to convert string to title case
s = input("Enter a sentence: ")
print("Title case:", s.title())Output
Enter a sentence: python STRING programs Title case: Python String Programs
Demonstrates reusing .title() directly on user input.