Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney committed Sep 4, 2024
1 parent bd0d558 commit fc7eec3
Show file tree
Hide file tree
Showing 7 changed files with 191 additions and 249 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
266 changes: 140 additions & 126 deletions _sources/chap08.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _sources/chap09.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.11"
}
},
"nbformat": 4,
Expand Down
40 changes: 21 additions & 19 deletions _sources/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Think Python, 3rd edition

<img width="250" src="https://raw.githubusercontent.com/AllenDowney/ThinkPython/v3/think_python_3e.jpg" style="float: right; margin-left: 10px;">

*Think Python* is an introduction to Python for people who have never programmed before -- or for people who have tried and had a hard time.

[Here is the landing page for the book at Green Tea Press](https://greenteapress.com/wp/think-python-3rd-edition/).
Expand All @@ -20,83 +22,83 @@ For the third edition, the biggest changes are:

## The notebooks

### Chapter 1: Programming as a way of thinking
**Chapter 1: Programming as a way of thinking**

* [Click here to run Chapter 1 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap01.ipynb)


### Chapter 2: Variables and Statements
**Chapter 2: Variables and Statements**

* [Click here to run Chapter 2 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap02.ipynb)


### Chapter 3: Functions
**Chapter 3: Functions**

* [Click here to run Chapter 3 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap03.ipynb)


### Chapter 4: Functions and Interfaces
**Chapter 4: Functions and Interfaces**

* [Click here to run Chapter 4 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap04.ipynb)


### Chapter 5: Conditionals and Recursion
**Chapter 5: Conditionals and Recursion**

* [Click here to run Chapter 5 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap05.ipynb)

### Chapter 6: Return Values
**Chapter 6: Return Values**

* [Click here to run Chapter 6 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap06.ipynb)

### Chapter 7: Iteration and Search
**Chapter 7: Iteration and Search**

* [Click here to run Chapter 7 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap07.ipynb)

### Chapter 8: Strings and Regular Expressions
**Chapter 8: Strings and Regular Expressions**

* [Click here to run Chapter 8 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap08.ipynb)

### Chapter 9: Lists
**Chapter 9: Lists**

* [Click here to run Chapter 9 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap09.ipynb)

### Chapter 10: Dictionaries
**Chapter 10: Dictionaries**

* [Click here to run Chapter 10 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap10.ipynb)

### Chapter 11: Tuples
**Chapter 11: Tuples**

* [Click here to run Chapter 11 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap11.ipynb)

### Chapter 12: Text Analysis and Generation
**Chapter 12: Text Analysis and Generation**

* [Click here to run Chapter 12 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap12.ipynb)

### Chapter 13: Files and Databases
**Chapter 13: Files and Databases**

* [Click here to run Chapter 13 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap13.ipynb)

### Chapter 14: Classes and Functions
**Chapter 14: Classes and Functions**

* [Click here to run Chapter 14 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap14.ipynb)

### Chapter 15: Classes and Methods
**Chapter 15: Classes and Methods**

* [Click here to run Chapter 15 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap15.ipynb)

### Chapter 16: Classes and Objects
**Chapter 16: Classes and Objects**

* [Click here to run Chapter 16 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap16.ipynb)

### Chapter 17: Inheritance
**Chapter 17: Inheritance**

* [Click here to run Chapter 17 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap17.ipynb)

### Chapter 18: Python Extras
**Chapter 18: Python Extras**

* [Click here to run Chapter 18 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap18.ipynb)

### Chapter 19: Final Thoughts
**Chapter 19: Final Thoughts**

* [Click here to run Chapter 19 on Colab](https://colab.research.google.com/github/AllenDowney/ThinkPython/blob/v3/chapters/chap19.ipynb)

Expand Down
7 changes: 6 additions & 1 deletion chap08.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ <h2>String slices<a class="headerlink" href="#string-slices" title="Link to this
This behavior is counterintuitive, but it might help to imagine the indices pointing <em>between</em> the characters, as in this figure:</p>
<div class="cell tag_remove-input docutils container">
<div class="cell_output docutils container">
<img alt="_images/5c9d8e380cfabbeb1b708d127fe4de7b00b09eb817cb30b7357e747f8f696fa1.png" src="_images/5c9d8e380cfabbeb1b708d127fe4de7b00b09eb817cb30b7357e747f8f696fa1.png" />
<img alt="_images/8ee40ccdcbc16b8660dd062b1c73a25d49a42724ad6026a2fa3ebf191b4a9862.png" src="_images/8ee40ccdcbc16b8660dd062b1c73a25d49a42724ad6026a2fa3ebf191b4a9862.png" />
</div>
</div>
<p>For example, the slice <code class="docutils literal notranslate"><span class="pre">[3:6]</span></code> selects the letters <code class="docutils literal notranslate"><span class="pre">ana</span></code>, which means that <code class="docutils literal notranslate"><span class="pre">6</span></code> is legal as part of a slice, but not legal as an index.</p>
Expand Down Expand Up @@ -1313,6 +1313,11 @@ <h2>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Exception reporting mode: Verbose
</pre></div>
</div>
</div>
</div>
<section id="ask-a-virtual-assistant">
<h3>Ask a virtual assistant<a class="headerlink" href="#ask-a-virtual-assistant" title="Link to this heading">#</a></h3>
Expand Down
Loading

0 comments on commit fc7eec3

Please sign in to comment.