ellesehc

Scrabble letters dictionary

Nov 14th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. letters = { "A": 1,
  2.         "B": 3,
  3.         "C": 3,
  4.         "D": 2,
  5.         "E": 1,
  6.         "F": 4,
  7.         "G": 2,
  8.         "H": 4,
  9.         "I": 1,
  10.         "J": 8,
  11.         "K": 5,
  12.         "L": 1,
  13.         "M": 3,
  14.         "N": 1,
  15.         "O": 1,
  16.         "P": 3,
  17.         "Q": 10,
  18.         "R": 1,
  19.         "S": 1,
  20.         "T": 1,
  21.         "U": 1,
  22.         "V": 4,
  23.         "W": 4,
  24.         "X": 8,
  25.         "Y": 4,
  26.         "Z": 10}
  27.  
  28.  def scrabble():
  29.     word = str(raw_input("Enter word: "))
  30.     wordList = list(word)
  31.     wordLen = len(wordList)
  32.     print wordList
  33.     print wordLen
  34.     print letters[wordList[wordLen-wordLen]]
Advertisement
Add Comment
Please, Sign In to add comment