Convert sentence to title case #
Write a function that takes a sentence as input and converts it to title case. In title case, the first letter of each word is capitalized, while the remaining letters are lowercase.
title() method for this challenge and try to solve the problem on your own.
Tests #
convert_to_title("hello world!")should return"Hello World!"convert_to_title("the cat in the hat.")should return"The Cat In The Hat."convert_to_title("i love coding.")should return"I Love Coding."convert_to_title("this is a test sentence.")should return"This Is A Test Sentence."convert_to_title("the quick brown fox.")should return"The Quick Brown Fox."convert_to_title("PYTHON PROGRAMMING IS FUN!")should return"Python Programming Is Fun!"
Getting Started with Python
Data Types
Python Functions
Statements in Python
Basic Debugging in Python
Basic Algorithm
Object-Oriented Programming
Error Handling
Intermediate Algorithm
Python Modules