{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "ch09-title",
   "metadata": {},
   "source": [
    "# Strings and Text"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ch09-overview",
   "metadata": {},
   "source": [
    "Strings are sequences of characters, so many sequence ideas from lists and tuples also apply to text.\n",
    "\n",
    "- Strings as immutable sequences\n",
    "- String methods for cleaning and transforming text\n",
    "- Regular expressions for pattern matching\n",
    "- Dictionaries and counters for text analysis\n",
    "- Random text and Markov-style generation\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0900-video",
   "metadata": {},
   "source": [
    "<h2>Video</h2>\n",
    "\n",
    "This overview introduces strings, string operations, and common string methods for working with text.\n",
    "\n",
    "```{raw} html\n",
    "<iframe width=\"100%\" height=\"400\" src=\"https://www.youtube-nocookie.com/embed/k9TUPpGqYTo\" title=\"Python Tutorial for Beginners 2: Strings - Working with Textual Data\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"></iframe>\n",
    "```\n",
    "\n",
    "> *[Python Tutorial for Beginners 2: Strings - Working with Textual Data](https://youtube.com/watch?v=k9TUPpGqYTo) by Corey Schafer*"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ch09-goals",
   "metadata": {},
   "source": [
    "<h2>Learning Goals</h2>\n",
    "\n",
    "By the end of this chapter, you will be able to:\n",
    "\n",
    "1. Create, index, slice, and compare strings\n",
    "2. Use string methods to clean, search, split, join, and format text\n",
    "3. Use regular expressions to find and replace text patterns\n",
    "4. Count words and summarize text with dictionaries and `Counter`\n",
    "5. Generate simple random text from word relationships\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ch09-flow",
   "metadata": {},
   "source": [
    "<h2>Chapter Flow</h2>\n",
    "\n",
    "```{tableofcontents}\n",
    "```"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0900-slides",
   "metadata": {},
   "source": [
    "<h2><a href=\"overview.html\" target=\"_blank\" style=\"color: var(--pst-color-link, #176de8);\">Chapter Overview Slides</a></h2>"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
