Skip to content

References: String Methods and Formatting

  1. String (computer science) — Wikipedia article explaining what strings are in programming, how they store sequences of characters, and why they are one of the most fundamental data types across all programming languages.

  2. String interpolation — Wikipedia article covering string interpolation techniques, including f-strings in Python, explaining how variables and expressions can be embedded directly inside string literals for clean, readable output.

  3. Comparison of programming languages (string functions) — Wikipedia reference showing how common string operations like split, join, replace, and case conversion are implemented across different languages, providing context for Python's approach.

  4. Python Crash Course by Eric Matthes (No Starch Press) — Chapter 2 and related sections cover Python string methods including upper(), lower(), strip(), and f-strings, with beginner-friendly examples ideal for students new to text manipulation.

  5. Python for Kids by Jason R. Briggs (No Starch Press) — An accessible introduction to Python designed for young learners that covers string operations, formatting, and built-in methods with short, playful examples suitable for ages 10–13.

  6. Python String Methods — Official Docs — The authoritative reference listing every built-in string method in Python, including upper, lower, strip, replace, split, and join, with precise descriptions and usage examples.

  7. Python f-strings — Real Python — A thorough tutorial on Python f-strings (formatted string literals), explaining syntax, embedding expressions, formatting numbers and values, and why f-strings are the modern preferred approach to string formatting.

  8. Python Strings — W3Schools — An interactive beginner reference covering Python string basics, indexing, slicing, and all major string methods, with editable in-browser code examples that reinforce the concepts in this chapter.

  9. Python String Methods — Programiz — A well-organized catalog of Python string methods with clear explanations and runnable examples for each method, making it an excellent quick reference while practicing split, join, strip, and replace.

  10. Python Strings — GeeksforGeeks — A comprehensive guide to Python strings covering creation, indexing, common methods, and string formatting techniques, with multiple code examples that complement the hands-on exercises in this chapter.