Skip to main content
← CoursesPython FoundationsModule 3 · Functions and stringsCapital letters in the titlewrite51 / 170
💬 Discuss🧪 Playground+75 XP
Task
📝 **Task:** `headline(text)` returns the string as Title Case. 📋 **Steps:** 1. `def headline(text):` 2. `return text.title()` 3. Call `headline("python is awesome")` 💡 **Similar example:** ```python def book_name(text): return text.title() print(book_name("the great gatsby")) # "The Great Gatsby" ``` ⚠️ Don't confuse `.title()` (Title Case) with `.upper()` (ALL CAPS). 🎯 **Expected output:** `Python Is Awesome`

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…