Scrabble challenge: Difference between revisions

Content added Content deleted
(Undo revision 20751 by 123.176.38.2 (talk))
Line 16: Line 16:
Write a Python script that takes a Scrabble rack as a command-line argument and prints all valid Scrabble words that can be constructed from that rack, along with their Scrabble scores, sorted by score. An example invocation and output:
Write a Python script that takes a Scrabble rack as a command-line argument and prints all valid Scrabble words that can be constructed from that rack, along with their Scrabble scores, sorted by score. An example invocation and output:


<pre>
<pre>[[Media:]]
$ python scrabble.py ZAEFIEE
$ python scrabble.py ZAEFIEE
17 feeze
17 feeze