Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
← CoursesPython FoundationsModule 3 · Functions and stringsTest: what's wrong with .lower()?quiz47 / 174
+60 XP
Task
📝 **Question:** What will this code output? ```python s = "Hello" s.upper() print(s) ``` 📋 Choose the right option. 💡 **Hint:** strings in Python are **immutable** (immutable). Methods like `.upper()` return a **new** string rather than changing the original one.
🎯 Quiz

Question

📝 **Question:** What will this code output? ```python s = "Hello" s.upper() print(s) ``` 📋 Choose the right option. 💡 **Hint:** strings in Python are **immutable** (immutable). Methods like `.upper()` return a **new** string rather than changing the original one.

💬 Discussion

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