Skip to content

Commit 121aa66

Browse files
committed
touchups and render v1.0!
1 parent 9bc7152 commit 121aa66

File tree

187 files changed

+7650
-3141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+7650
-3141
lines changed

Python/Module2_EssentialsOfPython/Problems/DifferenceFanout.ipynb

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Problem: Difference fanout\n",
7+
"# Difference Fanout\n",
8+
"\n",
9+
"Given a list of numbers, for each number generate a list of the differences between it and $n_{fanout}$ (known as the **fanout** value) following numbers in the list. Return a list of all the lists generated for each number. For members in the list that have fewer than $n_{fanout}$ following members, calculate as many differences as possible. For example, suppose we want to compute the difference fanout on the list `[3, 2, 4, 6, 1]` with a fanout value of 3. Then we would compute:\n",
810
"\n",
9-
">Given a list of numbers, for each number generate a list of the differences between it and $n_{fanout}$ (known as the **fanout** value) following numbers in the list. Return a list of all the lists generated for each number. For members in the list that have fewer than $n_{fanout}$ following members, calculate as many differences as possible. For example, suppose we want to compute the difference fanout on the list `[3, 2, 4, 6, 1]` with a fanout value of 3. Then we would compute:\n",
1011
" - $3 \\rightarrow [2 - 3, 4 - 3, 6 - 3]$\n",
1112
" - $2 \\rightarrow [4 - 2, 6 - 2, 1 - 2]$\n",
1213
" - $4 \\rightarrow [6 - 4, 1 - 4]$\n",
@@ -144,7 +145,7 @@
144145
"name": "python",
145146
"nbconvert_exporter": "python",
146147
"pygments_lexer": "ipython3",
147-
"version": "3.6.6"
148+
"version": "3.6.3"
148149
}
149150
},
150151
"nbformat": 4,

Python/Module2_EssentialsOfPython/Problems/EncodeAsString.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"Sometimes it is very important to handle different input object types differently in a function. This problem will exercise your understanding of types, control-flow, dictionaries, and more.\n",
99
"\n",
1010
">We want to encode a sequence of Python objects as a single string. The following describes the encoding method that we want to use for each type of object. Each object's transcription in should be separated by `\" | \"`, and the result should be one large string. \n",
11+
"\n",
1112
"- If the object is an integer, convert it into a string by spelling out each digit in base-10 in this format:\n",
1213
"`142` $\\rightarrow$ `one-four-two`; `-12` $\\rightarrow$ `neg-one-two`. \n",
1314
"- If the object is a float, just append its integer part (obtained by rounding down) the same way and the string `\"and float\"`:\n",
@@ -170,7 +171,7 @@
170171
"name": "python",
171172
"nbconvert_exporter": "python",
172173
"pygments_lexer": "ipython3",
173-
"version": "3.6.6"
174+
"version": "3.6.3"
174175
}
175176
},
176177
"nbformat": 4,

Python/Module2_EssentialsOfPython/Variables_and_Assignment.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"```\n",
7575
"\n",
7676
"To spell out what is transpiring here, we:\n",
77+
"\n",
7778
"1. Create (initialize) a list with the state `[1, 2, 3]`.\n",
7879
"2. Assign this list to the variable `x`; `x` is now a reference to that list.\n",
7980
"3. Using our referencing variable, `x`, update element-0 of the list to store the integer `-4`. \n",
@@ -254,7 +255,7 @@
254255
"name": "python",
255256
"nbconvert_exporter": "python",
256257
"pygments_lexer": "ipython3",
257-
"version": "3.6.6"
258+
"version": "3.6.3"
258259
}
259260
},
260261
"nbformat": 4,

Python/Module5_OddsAndEnds/WorkingWithFiles.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
"```python\n",
362362
">>> grades = {\"Albert\": 92, \"David\": 85, \"Emmy\": 98, \"Marie\": 79} \n",
363363
"```\n",
364-
"How do you save this dictionary so that you can revisit these grades at a later time? Python's standard library includes the [`pickle`](https://docs.python.org/3/library/pickle.html) module, which provides functions for saving and loading Python objects to disk. Let's \"pickle\" this dictionary, saving it to the file \"grades.pkl\" in our present directory:\n",
364+
"How do you save this dictionary so that you can revisit these grades at a later time? Python's standard library includes the [pickle](https://docs.python.org/3/library/pickle.html) module, which provides functions for saving and loading Python objects to disk. Let's \"pickle\" this dictionary, saving it to the file \"grades.pkl\" in our present directory:\n",
365365
"\n",
366366
"```python\n",
367367
"import pickle\n",
@@ -453,7 +453,7 @@
453453
"- [The 'open' function](https://docs.python.org/3/library/functions.html#open)\n",
454454
"- [Official tutorial: reading and writing files](https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files)\n",
455455
"- [Globbing files](https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob)\n",
456-
"- [The `pickle` module](https://docs.python.org/3/library/pickle.html)\n",
456+
"- [The pickle module](https://docs.python.org/3/library/pickle.html)\n",
457457
" - [What can and cannot be pickled?](https://docs.python.org/3/library/pickle.html#what-can-be-pickled-and-unpickled)"
458458
]
459459
},

Python/module_2_problems.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Module 2: Problems
22
==================
33
This section presents the reader with problems to exercise their understanding of the materials that were presented in the Essentials of Python module. They are meant to be worked through after having read through the module in its entirety. Accompanying each problem is a solution and explanation, which include links to the relevant sections of Python Like You Mean It. The solutions are also designed to emphasize good coding practices.
4+
45
These problems were written by former students of mine and PLYMI readers. Have you written a piece of code that would make for a good exercise for a Python user? Consider submitting a problem and solution to be included here!
56

67

Python/module_3_problems.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Module 2: Problems
1+
Module 3: Problems
22
==================
33
This section presents the reader with problems to exercise their understanding of the materials that were presented in the Essentials of NumPy module. They are meant to be worked through after having read through the module in its entirety. Accompanying each problem is a solution and explanation, which include links to the relevant sections of Python Like You Mean It. The solutions are also designed to emphasize good coding practices.
4+
45
These problems were written by former students of mine and PLYMI readers. Have you written a piece of code that would make for a good exercise for a Python user? Consider submitting a problem and solution to be included here!
56

67

docs/.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: d970b674a212f829c280da74323117e2
3+
config: 46ccee90ded2f6b6478197787064bea7
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/.doctrees/environment.pickle

26.5 KB
Binary file not shown.

docs/.doctrees/index.doctree

56 Bytes
Binary file not shown.

docs/.doctrees/intro.doctree

4.39 KB
Binary file not shown.

docs/.doctrees/module_2.doctree

679 Bytes
Binary file not shown.
4.38 KB
Binary file not shown.
4.15 KB
Binary file not shown.

docs/Module1_GettingStartedWithPython/Exercises/Informal_Intro_Python.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Exercises &mdash; Python Like You Mean It 0.15.0 documentation</title>
11+
<title>Exercises &mdash; Python Like You Mean It 1.0.0 documentation</title>
1212

1313

1414

@@ -37,7 +37,7 @@
3737
<link rel="index" title="Index"
3838
href="../../genindex.html"/>
3939
<link rel="search" title="Search" href="../../search.html"/>
40-
<link rel="top" title="Python Like You Mean It 0.15.0 documentation" href="../../index.html"/>
40+
<link rel="top" title="Python Like You Mean It 1.0.0 documentation" href="../../index.html"/>
4141

4242

4343
<script src="../../_static/js/modernizr.min.js"></script>
@@ -66,7 +66,7 @@
6666

6767

6868
<div class="version">
69-
0.15.0
69+
1.0
7070
</div>
7171

7272

@@ -95,7 +95,9 @@
9595
<li class="toctree-l1"><a class="reference internal" href="../../intro.html">Python Like You Mean It</a></li>
9696
<li class="toctree-l1"><a class="reference internal" href="../../module_1.html">Module 1: Getting Started with Python</a></li>
9797
<li class="toctree-l1"><a class="reference internal" href="../../module_2.html">Module 2: The Essentials of Python</a></li>
98+
<li class="toctree-l1"><a class="reference internal" href="../../module_2_problems.html">Module 2: Problems</a></li>
9899
<li class="toctree-l1"><a class="reference internal" href="../../module_3.html">Module 3: The Essentials of NumPy</a></li>
100+
<li class="toctree-l1"><a class="reference internal" href="../../module_3_problems.html">Module 3: Problems</a></li>
99101
<li class="toctree-l1"><a class="reference internal" href="../../module_4.html">Module 4: Object Oriented Programming</a></li>
100102
<li class="toctree-l1"><a class="reference internal" href="../../module_5.html">Module 5: Odds and Ends</a></li>
101103
</ul>
@@ -292,7 +294,7 @@ <h2>Doing Simple Arithmetic (not graded)<a class="headerlink" href="#Doing-Simpl
292294
<script type="text/javascript">
293295
var DOCUMENTATION_OPTIONS = {
294296
URL_ROOT:'../../',
295-
VERSION:'0.15.0',
297+
VERSION:'1.0.0',
296298
COLLAPSE_INDEX:false,
297299
FILE_SUFFIX:'.html',
298300
HAS_SOURCE: true,

docs/Module1_GettingStartedWithPython/GettingStartedWithPython.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Introducing the Python Programming Language &mdash; Python Like You Mean It 0.15.0 documentation</title>
11+
<title>Introducing the Python Programming Language &mdash; Python Like You Mean It 1.0.0 documentation</title>
1212

1313

1414

@@ -37,7 +37,7 @@
3737
<link rel="index" title="Index"
3838
href="../genindex.html"/>
3939
<link rel="search" title="Search" href="../search.html"/>
40-
<link rel="top" title="Python Like You Mean It 0.15.0 documentation" href="../index.html"/>
40+
<link rel="top" title="Python Like You Mean It 1.0.0 documentation" href="../index.html"/>
4141
<link rel="up" title="Module 1: Getting Started with Python" href="../module_1.html"/>
4242
<link rel="next" title="Installing Python" href="Installing_Python.html"/>
4343
<link rel="prev" title="A Quick Guide to Formatting" href="SiteFormatting.html"/>
@@ -69,7 +69,7 @@
6969

7070

7171
<div class="version">
72-
0.15.0
72+
1.0
7373
</div>
7474

7575

@@ -113,7 +113,9 @@
113113
</ul>
114114
</li>
115115
<li class="toctree-l1"><a class="reference internal" href="../module_2.html">Module 2: The Essentials of Python</a></li>
116+
<li class="toctree-l1"><a class="reference internal" href="../module_2_problems.html">Module 2: Problems</a></li>
116117
<li class="toctree-l1"><a class="reference internal" href="../module_3.html">Module 3: The Essentials of NumPy</a></li>
118+
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
117119
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
118120
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
119121
</ul>
@@ -463,7 +465,7 @@ <h2>Summary<a class="headerlink" href="#Summary" title="Permalink to this headli
463465
<script type="text/javascript">
464466
var DOCUMENTATION_OPTIONS = {
465467
URL_ROOT:'../',
466-
VERSION:'0.15.0',
468+
VERSION:'1.0.0',
467469
COLLAPSE_INDEX:false,
468470
FILE_SUFFIX:'.html',
469471
HAS_SOURCE: true,

docs/Module1_GettingStartedWithPython/Getting_Started_With_IDEs_and_Notebooks.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Setting Up a Development Environment &mdash; Python Like You Mean It 0.15.0 documentation</title>
11+
<title>Setting Up a Development Environment &mdash; Python Like You Mean It 1.0.0 documentation</title>
1212

1313

1414

@@ -37,7 +37,7 @@
3737
<link rel="index" title="Index"
3838
href="../genindex.html"/>
3939
<link rel="search" title="Search" href="../search.html"/>
40-
<link rel="top" title="Python Like You Mean It 0.15.0 documentation" href="../index.html"/>
40+
<link rel="top" title="Python Like You Mean It 1.0.0 documentation" href="../index.html"/>
4141
<link rel="up" title="Module 1: Getting Started with Python" href="../module_1.html"/>
4242
<link rel="next" title="Module 2: The Essentials of Python" href="../module_2.html"/>
4343
<link rel="prev" title="Jupyter Notebooks" href="Jupyter_Notebooks.html"/>
@@ -69,7 +69,7 @@
6969

7070

7171
<div class="version">
72-
0.15.0
72+
1.0
7373
</div>
7474

7575

@@ -113,7 +113,9 @@
113113
</ul>
114114
</li>
115115
<li class="toctree-l1"><a class="reference internal" href="../module_2.html">Module 2: The Essentials of Python</a></li>
116+
<li class="toctree-l1"><a class="reference internal" href="../module_2_problems.html">Module 2: Problems</a></li>
116117
<li class="toctree-l1"><a class="reference internal" href="../module_3.html">Module 3: The Essentials of NumPy</a></li>
118+
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
117119
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
118120
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
119121
</ul>
@@ -360,7 +362,7 @@ <h3>Recommended IDEs<a class="headerlink" href="#Recommended-IDEs" title="Permal
360362
<script type="text/javascript">
361363
var DOCUMENTATION_OPTIONS = {
362364
URL_ROOT:'../',
363-
VERSION:'0.15.0',
365+
VERSION:'1.0.0',
364366
COLLAPSE_INDEX:false,
365367
FILE_SUFFIX:'.html',
366368
HAS_SOURCE: true,

docs/Module1_GettingStartedWithPython/Informal_Intro_Python.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>An Informal Introduction to Python &mdash; Python Like You Mean It 0.15.0 documentation</title>
11+
<title>An Informal Introduction to Python &mdash; Python Like You Mean It 1.0.0 documentation</title>
1212

1313

1414

@@ -37,7 +37,7 @@
3737
<link rel="index" title="Index"
3838
href="../genindex.html"/>
3939
<link rel="search" title="Search" href="../search.html"/>
40-
<link rel="top" title="Python Like You Mean It 0.15.0 documentation" href="../index.html"/>
40+
<link rel="top" title="Python Like You Mean It 1.0.0 documentation" href="../index.html"/>
4141
<link rel="up" title="Module 1: Getting Started with Python" href="../module_1.html"/>
4242
<link rel="next" title="Jupyter Notebooks" href="Jupyter_Notebooks.html"/>
4343
<link rel="prev" title="Installing Python" href="Installing_Python.html"/>
@@ -69,7 +69,7 @@
6969

7070

7171
<div class="version">
72-
0.15.0
72+
1.0
7373
</div>
7474

7575

@@ -111,7 +111,9 @@
111111
</ul>
112112
</li>
113113
<li class="toctree-l1"><a class="reference internal" href="../module_2.html">Module 2: The Essentials of Python</a></li>
114+
<li class="toctree-l1"><a class="reference internal" href="../module_2_problems.html">Module 2: Problems</a></li>
114115
<li class="toctree-l1"><a class="reference internal" href="../module_3.html">Module 3: The Essentials of NumPy</a></li>
116+
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
115117
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
116118
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
117119
</ul>
@@ -1208,7 +1210,7 @@ <h2>Playing with Lists<a class="headerlink" href="#Playing-with-Lists" title="Pe
12081210
<script type="text/javascript">
12091211
var DOCUMENTATION_OPTIONS = {
12101212
URL_ROOT:'../',
1211-
VERSION:'0.15.0',
1213+
VERSION:'1.0.0',
12121214
COLLAPSE_INDEX:false,
12131215
FILE_SUFFIX:'.html',
12141216
HAS_SOURCE: true,

docs/Module1_GettingStartedWithPython/Installing_Python.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Installing Python &mdash; Python Like You Mean It 0.15.0 documentation</title>
11+
<title>Installing Python &mdash; Python Like You Mean It 1.0.0 documentation</title>
1212

1313

1414

@@ -37,7 +37,7 @@
3737
<link rel="index" title="Index"
3838
href="../genindex.html"/>
3939
<link rel="search" title="Search" href="../search.html"/>
40-
<link rel="top" title="Python Like You Mean It 0.15.0 documentation" href="../index.html"/>
40+
<link rel="top" title="Python Like You Mean It 1.0.0 documentation" href="../index.html"/>
4141
<link rel="up" title="Module 1: Getting Started with Python" href="../module_1.html"/>
4242
<link rel="next" title="An Informal Introduction to Python" href="Informal_Intro_Python.html"/>
4343
<link rel="prev" title="Introducing the Python Programming Language" href="GettingStartedWithPython.html"/>
@@ -69,7 +69,7 @@
6969

7070

7171
<div class="version">
72-
0.15.0
72+
1.0
7373
</div>
7474

7575

@@ -109,7 +109,9 @@
109109
</ul>
110110
</li>
111111
<li class="toctree-l1"><a class="reference internal" href="../module_2.html">Module 2: The Essentials of Python</a></li>
112+
<li class="toctree-l1"><a class="reference internal" href="../module_2_problems.html">Module 2: Problems</a></li>
112113
<li class="toctree-l1"><a class="reference internal" href="../module_3.html">Module 3: The Essentials of NumPy</a></li>
114+
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
113115
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
114116
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
115117
</ul>
@@ -312,7 +314,7 @@ <h2>Installing Anaconda<a class="headerlink" href="#Installing-Anaconda" title="
312314
<script type="text/javascript">
313315
var DOCUMENTATION_OPTIONS = {
314316
URL_ROOT:'../',
315-
VERSION:'0.15.0',
317+
VERSION:'1.0.0',
316318
COLLAPSE_INDEX:false,
317319
FILE_SUFFIX:'.html',
318320
HAS_SOURCE: true,

docs/Module1_GettingStartedWithPython/Jupyter_Notebooks.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Jupyter Notebooks &mdash; Python Like You Mean It 0.15.0 documentation</title>
11+
<title>Jupyter Notebooks &mdash; Python Like You Mean It 1.0.0 documentation</title>
1212

1313

1414

@@ -37,7 +37,7 @@
3737
<link rel="index" title="Index"
3838
href="../genindex.html"/>
3939
<link rel="search" title="Search" href="../search.html"/>
40-
<link rel="top" title="Python Like You Mean It 0.15.0 documentation" href="../index.html"/>
40+
<link rel="top" title="Python Like You Mean It 1.0.0 documentation" href="../index.html"/>
4141
<link rel="up" title="Module 1: Getting Started with Python" href="../module_1.html"/>
4242
<link rel="next" title="Setting Up a Development Environment" href="Getting_Started_With_IDEs_and_Notebooks.html"/>
4343
<link rel="prev" title="An Informal Introduction to Python" href="Informal_Intro_Python.html"/>
@@ -69,7 +69,7 @@
6969

7070

7171
<div class="version">
72-
0.15.0
72+
1.0
7373
</div>
7474

7575

@@ -116,7 +116,9 @@
116116
</ul>
117117
</li>
118118
<li class="toctree-l1"><a class="reference internal" href="../module_2.html">Module 2: The Essentials of Python</a></li>
119+
<li class="toctree-l1"><a class="reference internal" href="../module_2_problems.html">Module 2: Problems</a></li>
119120
<li class="toctree-l1"><a class="reference internal" href="../module_3.html">Module 3: The Essentials of NumPy</a></li>
121+
<li class="toctree-l1"><a class="reference internal" href="../module_3_problems.html">Module 3: Problems</a></li>
120122
<li class="toctree-l1"><a class="reference internal" href="../module_4.html">Module 4: Object Oriented Programming</a></li>
121123
<li class="toctree-l1"><a class="reference internal" href="../module_5.html">Module 5: Odds and Ends</a></li>
122124
</ul>
@@ -1489,7 +1491,7 @@ <h3>Using Jupyter Notebooks with Other Languages<a class="headerlink" href="#Usi
14891491
<script type="text/javascript">
14901492
var DOCUMENTATION_OPTIONS = {
14911493
URL_ROOT:'../',
1492-
VERSION:'0.15.0',
1494+
VERSION:'1.0.0',
14931495
COLLAPSE_INDEX:false,
14941496
FILE_SUFFIX:'.html',
14951497
HAS_SOURCE: true,

0 commit comments

Comments
 (0)