Skip to content

Commit b3e25f7

Browse files
committed
updating rendered materials
1 parent 86725d0 commit b3e25f7

3 files changed

Lines changed: 25 additions & 30 deletions

File tree

‎_sources/exercises/list_lab.rst.txt‎

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ to query the user for info at the command line, you use:
2929
Procedure
3030
---------
3131

32-
In your student dir in the class repo, create a ``lesson03`` dir and put in a new ``list_lab.py`` file.
32+
In the github classroom repo for this exercise, you will find a``list_lab.py`` file (if it not there, you can create it and add it to git yourself).
3333

34-
The file should be an executable Python script. That is to say that one
34+
The file should be made an executable Python script. That is to say that one
3535
should be able to run the script directly like so:
3636

3737
.. code-block:: bash
@@ -50,11 +50,11 @@ should be able to run the script directly like so:
5050

5151
The file will also need this on the first line::
5252

53-
#!/usr/bin/env python3
53+
#!/usr/bin/env python
5454

55-
This is known as the "she-bang" line -- it tells the shell how to execute that file -- in this case, with ``python3``
55+
This is known as the "she-bang" line -- it tells the shell how to execute that file -- in this case, with ``python``
5656

57-
NOTE: on Windows, there is a python launcher which, if everything is configured correctly will look at that line to know you want python3 if there is more than one python on your system.
57+
NOTE: on Windows, there is a python launcher which, if everything is configured correctly will look at that line to know you want python if there is more than one python on your system.
5858

5959
If this doesn't work on Windows, just run the file some other way:
6060

@@ -63,14 +63,11 @@ If this doesn't work on Windows, just run the file some other way:
6363
- from your IDE or editor is you are using one
6464

6565

66-
Add the file to your clone of the repository and commit changes frequently
66+
Make sure the file is added to your clone of the repository and commit changes frequently
6767
while working on the following tasks. When you are done, push your changes to
68-
GitHub and issue a pull request.
68+
GitHub and issue a pull request to let the instructors know it is ready for review.
6969

70-
(if you are still struggling with git -- just write the code for now).
71-
72-
When the script is run, it should accomplish the following four series of
73-
actions:
70+
When the script is run, it should accomplish the following four series of actions:
7471

7572
Series 1
7673
--------
@@ -79,8 +76,8 @@ Series 1
7976
- Display the list (plain old ``print()`` is fine...).
8077
- Ask the user for another fruit and add it to the end of the list.
8178
- Display the list.
82-
- Ask the user for a number and display the number back to the user and the
83-
fruit corresponding to that number (on a 1-is-first basis). Remember that Python uses zero-based indexing, so you will need to correct.
79+
- Ask the user for a number and display the number back to the user
80+
and the fruit corresponding to that number (on a 1-is-first basis). Remember that Python uses zero-based indexing, so you will need to correct for that.
8481
- Add another fruit to the beginning of the list using "+" and display the
8582
list.
8683
- Add another fruit to the beginning of the list using ``insert()`` and display the list.
@@ -105,8 +102,8 @@ Again, using the list from series 1:
105102

106103
- Ask the user for input displaying a line like "Do you like apples?" for each fruit in the list (making the fruit all lowercase).
107104
- For each "no", delete that fruit from the list.
108-
- For any answer that is not "yes" or "no", prompt the user to answer with one
109-
of those two values (a while loop is good here)
105+
- For any answer that is not "yes" or "no", prompt the user to answer
106+
with one of those two values (a while loop is good here)
110107
- Display the list.
111108

112109
Series 4

‎exercises/list_lab.html‎

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ <h3>Hint<a class="headerlink" href="#hint" title="Permalink to this headline">¶
205205
</div>
206206
<div class="section" id="procedure">
207207
<h3>Procedure<a class="headerlink" href="#procedure" title="Permalink to this headline"></a></h3>
208-
<p>In your student dir in the class repo, create a <code class="docutils literal notranslate"><span class="pre">lesson03</span></code> dir and put in a new <code class="docutils literal notranslate"><span class="pre">list_lab.py</span></code> file.</p>
209-
<p>The file should be an executable Python script. That is to say that one
208+
<p>In the github classroom repo for this exercise, you will find a``list_lab.py`` file (if it not there, you can create it and add it to git yourself).</p>
209+
<p>The file should be made an executable Python script. That is to say that one
210210
should be able to run the script directly like so:</p>
211211
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ ./list_lab.py
212212
</pre></div>
@@ -218,11 +218,11 @@ <h3>Procedure<a class="headerlink" href="#procedure" title="Permalink to this he
218218
</div>
219219
<p>(The +x means make this executable).</p>
220220
<p>The file will also need this on the first line:</p>
221-
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env python3</span>
221+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env python</span>
222222
</pre></div>
223223
</div>
224-
<p>This is known as the “she-bang” line – it tells the shell how to execute that file – in this case, with <code class="docutils literal notranslate"><span class="pre">python3</span></code></p>
225-
<p>NOTE: on Windows, there is a python launcher which, if everything is configured correctly will look at that line to know you want python3 if there is more than one python on your system.</p>
224+
<p>This is known as the “she-bang” line – it tells the shell how to execute that file – in this case, with <code class="docutils literal notranslate"><span class="pre">python</span></code></p>
225+
<p>NOTE: on Windows, there is a python launcher which, if everything is configured correctly will look at that line to know you want python if there is more than one python on your system.</p>
226226
<p>If this doesn’t work on Windows, just run the file some other way:</p>
227227
<blockquote>
228228
<div><ul class="simple">
@@ -231,12 +231,10 @@ <h3>Procedure<a class="headerlink" href="#procedure" title="Permalink to this he
231231
<li><p>from your IDE or editor is you are using one</p></li>
232232
</ul>
233233
</div></blockquote>
234-
<p>Add the file to your clone of the repository and commit changes frequently
234+
<p>Make sure the file is added to your clone of the repository and commit changes frequently
235235
while working on the following tasks. When you are done, push your changes to
236-
GitHub and issue a pull request.</p>
237-
<p>(if you are still struggling with git – just write the code for now).</p>
238-
<p>When the script is run, it should accomplish the following four series of
239-
actions:</p>
236+
GitHub and issue a pull request to let the instructors know it is ready for review.</p>
237+
<p>When the script is run, it should accomplish the following four series of actions:</p>
240238
</div>
241239
<div class="section" id="series-1">
242240
<h3>Series 1<a class="headerlink" href="#series-1" title="Permalink to this headline"></a></h3>
@@ -245,8 +243,8 @@ <h3>Series 1<a class="headerlink" href="#series-1" title="Permalink to this head
245243
<li><p>Display the list (plain old <code class="docutils literal notranslate"><span class="pre">print()</span></code> is fine…).</p></li>
246244
<li><p>Ask the user for another fruit and add it to the end of the list.</p></li>
247245
<li><p>Display the list.</p></li>
248-
<li><p>Ask the user for a number and display the number back to the user and the
249-
fruit corresponding to that number (on a 1-is-first basis). Remember that Python uses zero-based indexing, so you will need to correct.</p></li>
246+
<li><p>Ask the user for a number and display the number back to the user
247+
and the fruit corresponding to that number (on a 1-is-first basis). Remember that Python uses zero-based indexing, so you will need to correct for that.</p></li>
250248
<li><p>Add another fruit to the beginning of the list using “+” and display the
251249
list.</p></li>
252250
<li><p>Add another fruit to the beginning of the list using <code class="docutils literal notranslate"><span class="pre">insert()</span></code> and display the list.</p></li>
@@ -270,8 +268,8 @@ <h3>Series 3<a class="headerlink" href="#series-3" title="Permalink to this head
270268
<ul class="simple">
271269
<li><p>Ask the user for input displaying a line like “Do you like apples?” for each fruit in the list (making the fruit all lowercase).</p></li>
272270
<li><p>For each “no”, delete that fruit from the list.</p></li>
273-
<li><p>For any answer that is not “yes” or “no”, prompt the user to answer with one
274-
of those two values (a while loop is good here)</p></li>
271+
<li><p>For any answer that is not “yes” or “no”, prompt the user to answer
272+
with one of those two values (a while loop is good here)</p></li>
275273
<li><p>Display the list.</p></li>
276274
</ul>
277275
</div>

‎searchindex.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)