projects
/
wordplay-cdsw-solutions
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added new python programs with solutions for the ideas listed on the wordplay page
[wordplay-cdsw-solutions]
/
solution_7.py
diff --git
a/solution_7.py
b/solution_7.py
index 61cb133795aefc14d9764896503dba58b817bba3..7b89fa399ba88ed91a4ff5f471585c776d26f629 100644
(file)
--- a/
solution_7.py
+++ b/
solution_7.py
@@
-4,6
+4,7
@@
import scrabble
max_score = 0
max_word = ''
+
for word in scrabble.wordlist:
score = 0
for char in word:
@@
-12,5
+13,4
@@
for word in scrabble.wordlist:
max_word = word
max_score = score
-print max_score
-print max_word
+print(str(max_score) + " : " + max_word)
Benjamin Mako Hill
||
Want to submit a patch?