Convert the first letter in each word uppercase #
There is another useful function to make the first letter of each word uppercase, and that is title().
Here's an example:
my_string = "PYTHON IS THE EASIEST LANGUAGE TO LEARN."
lowercase_string = my_string.title()
print(lowercase_string) # Output: Python Is The Easiest Language To Learn.
Exercise #
- Use the
title()function to makenew_titlea title format - Do not change the first line of code
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