fixed typo, and added note about lack of progress indicator

This commit is contained in:
Mark Pilgrim
2009-07-14 01:01:09 -04:00
parent 584614b739
commit 8a0f7ffda1
Regular → Executable
+5 -3
View File
@@ -24,7 +24,7 @@ body{counter-reset:h1 7}
<p>Let me spell it out for you. <p>Let me spell it out for you.
<pre><code>HAWAII + IDAHO + IOWA + OHIO == STATES <pre class=nd><code>HAWAII + IDAHO + IOWA + OHIO == STATES
510199 + 98153 + 9301 + 3593 == 621246 510199 + 98153 + 9301 + 3593 == 621246
H = 5 H = 5
@@ -72,8 +72,10 @@ if __name__ == '__main__':
if solution: if solution:
print(solution)</code></pre> print(solution)</code></pre>
<pre class=screen> <p>You can run the program from the command line. On Linux, it would look like this. (These may take some time, depending on the speed of your computer, and there is no progress bar. Just be patient!)
<samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "HAWAII + IDAHO + IOWA + OHIO = STATES"</kbd>
<pre class='nd screen'>
<samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "HAWAII + IDAHO + IOWA + OHIO == STATES"</kbd>
<samp>HAWAII + IDAHO + IOWA + OHIO = STATES <samp>HAWAII + IDAHO + IOWA + OHIO = STATES
510199 + 98153 + 9301 + 3593 == 621246</samp> 510199 + 98153 + 9301 + 3593 == 621246</samp>
<samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "I + LOVE + YOU == DORA"</kbd> <samp class=p>you@localhost:~$ </samp><kbd>python3 alphametics.py "I + LOVE + YOU == DORA"</kbd>