String Methods
Multiple Choice Beginner
Question
What does "hello".upper() return?
Hint
upper converts to uppercase.
Explanation
"hello".upper() returns "HELLO" — all characters converted to uppercase. Other string methods: lower(), title() (capitalize each word), strip() (remove whitespace), replace("a", "b"), split(","), and join(). Strings are immutable, so these return new strings without modifying the original.
Related Resources
Related Lessons
- Strings
Learn Python strings.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.