Anonymous user
O'Reilly Introduction to Python/Section 18: Difference between revisions
O'Reilly Introduction to Python/Section 18 (view source)
Revision as of 15:50, 15 December 2018
, 5 years ago→Step 1: construct a Python word list
imported>Jesstess No edit summary |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 7:
We looked briefly at a Scrabble cheater in this video. To run it yourself, download these files to the same directory:
* [http://web.mit.edu/jesstess/www/OReillyPython/Section18/scrabble_cheater.py scrabble_cheater.py] (the main program we run)
* [http://web.mit.edu/jesstess/www/OReillyPython/Section18/scrabble.py scrabble.py] (the helper module)
* [http://web.mit.edu/jesstess/www/OReillyPython/Section18/sowpods.txt sowpods.txt] (the wordlist)
Line 31:
<pre>
$ python
2 AE
2 AI
Line 92:
</li>
</ul>
===Step 2: get the rack===
Line 163 ⟶ 162:
<pre>
$ python
2 AA
</pre>
<pre>
$ python
2 AA
2 AE
|