fork(1) download
  1. score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,
  2. "f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,
  3. "l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,
  4. "r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4,
  5. "x": 8, "z": 10}
  6. def scrabble_score(word):
  7. word = input()
  8. str(word)
  9. word.lower()
  10. total = 0
  11. for i in len(word):
  12. total += score[word[i]]
  13. return total
  14. print (scrabble_score(petyaz))
  15.  
Runtime error #stdin #stdout #stderr 0.01s 7892KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 14, in <module>
NameError: name 'petyaz' is not defined