Skip to content

Commit e3cac1d

Browse files
authored
Merge pull request #226 from dsanders12/potential-issue-fix
Resolves #219
2 parents 95cc3cf + de71c06 commit e3cac1d

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

pretext/GeneralIntro/FormalandNaturalLanguages.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
<p>Formal languages mean exactly what they say. On the other hand,
5656
natural languages are full of idiom and metaphor. If someone says, <q>The
5757
other shoe fell</q>, there is probably no shoe and nothing falling.</p>
58-
<tip>
58+
<note>
5959
<p>You'll need to find the original joke to understand the idiomatic
6060
meaning of the other shoe falling. <em>Yahoo! Answers</em> thinks it
6161
knows!</p>
62-
</tip>
62+
</note>
6363
</gi>
6464
</glossary>
6565
<p>People who grow up speaking a natural language&#x2014;everyone&#x2014;often have a hard

pretext/SimplePythonData/VariableNamesandKeywords.ptx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
digits, but they have to begin with a letter or an underscore. Although it is
66
legal to use uppercase letters, by convention we don't. If you do, remember
77
that case matters. <c>Bruce</c> and <c>bruce</c> are different variables.</p>
8-
<caution>
8+
<warning>
99
<p>Variable names can never contain spaces.</p>
10-
</caution>
10+
</warning>
1111
<p>The underscore character ( <c>_</c>) can also appear in a name. It is often used in
1212
names with multiple words, such as <c>my_name</c> or <c>price_of_tea_in_china</c>.
1313
There are some situations in which names beginning with an underscore have
@@ -153,7 +153,7 @@ class = "Computer Science 101"</pre>
153153
<p>Programmers generally choose names for their variables that are meaningful to
154154
the human readers of the program &#x2014; they help the programmer document, or
155155
remember, what the variable is used for.</p>
156-
<caution>
156+
<warning>
157157
<p>Beginners sometimes confuse <q>meaningful to the human readers</q> with
158158
<q>meaningful to the computer</q>. So they'll wrongly think that because
159159
they've called some variable <c>average</c> or <c>pi</c>, it will somehow
@@ -166,7 +166,7 @@ class = "Computer Science 101"</pre>
166166
the programmer, have to write some program code to calculate the average,
167167
or you must write an assignment statement to give a variable the value you
168168
want it to have.</p>
169-
</caution>
169+
</warning>
170170
<p>
171171
<term>Check your understanding</term>
172172
</p>

pretext/SimplePythonData/Variables.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ pi = 3.14159
2525
17 = n
2626
</input>
2727
</program>
28-
<tip>
28+
<note>
2929
<p>When reading or writing code, say to yourself <q>n is assigned 17</q> or <q>n gets
3030
the value 17</q> or <q>n is a reference to the object 17</q> or <q>n refers to the object 17</q>. Don't say <q>n equals 17</q>.</p>
31-
</tip>
31+
</note>
3232
<p>A common way to represent variables on paper is to write the name with an arrow
3333
pointing to the variable's value. This kind of figure, known as a <term>reference diagram</term>, is often called a <term>state
3434
snapshot</term> because it shows what state each of the variables is in at a

0 commit comments

Comments
 (0)