Skip to content

References: Working with Strings

  1. String (computer science) — Wikipedia. https://en.wikipedia.org/wiki/String_(computer_science) Explains what strings are in computing, how they are stored, and why they are one of the fundamental data types found in every programming language, including Python.

  2. String literal — Wikipedia. https://en.wikipedia.org/wiki/String_literal Covers the concept of writing string values directly in source code using quotation marks, including the difference between single-quoted and double-quoted literals across languages.

  3. Escape character — Wikipedia. https://en.wikipedia.org/wiki/Escape_character Describes how escape sequences like \n and \t let programmers embed special characters inside strings, a key concept introduced in this chapter.

  4. Python Crash Course by Eric Matthes (No Starch Press, 2023). Chapter 2 covers Python strings in depth, including concatenation, methods, and formatting, making it an excellent companion for students who want additional worked examples and exercises.

  5. Python for Kids by Jason R. Briggs (No Starch Press, 2013). Written specifically for young learners, this book introduces strings with age-appropriate examples and humor, closely matching the audience and teaching style of this chapter.

  6. Python Docs — Built-in String Methods https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str The official Python reference for the str type, listing every built-in method with precise descriptions; the authoritative source for understanding len() and string indexing behavior.

  7. Real Python — Python String Formatting https://realpython.com/python-strings/ A thorough, beginner-friendly tutorial covering string literals, concatenation, indexing, slicing, and escape characters with interactive examples directly relevant to this chapter.

  8. W3Schools — Python Strings https://www.w3schools.com/python/python_strings.asp Provides concise, runnable examples for every core string concept — literals, concatenation, len(), indexing, and escape characters — with a built-in "Try it Yourself" editor.

  9. Programiz — Python Strings https://www.programiz.com/python-programming/string Covers Python string fundamentals with clear diagrams showing how characters are indexed, plus short programs students can run immediately to reinforce their understanding.

  10. Khan Academy — Intro to Python Fundamentals: Strings https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5fcf6ce9534777be:strings An interactive video-and-exercise sequence aimed at beginners, walking through string creation, concatenation, and basic operations at a pace well suited to students ages 10–13.