id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

peter@norvig.com scrabble > scrabble_all_plays
prev  |  next  |  chance

In this third Scrabble exercise, you will write scrabble_all_plays(row, rack) to return a list of (k, word) pairs that represent all the possible plays that can be made anywhere on the row, given a dictionary of possible words. Use 'sorted' to sort the result. Instead of using the full official Scrabble dictionary, use the following (very) abridged list of words: dictionary = "HE HELL HELLO LOW OTHER HER THE THERE WELL ELL EL TEE TOE OX OXEN ZOO ZOOLOGY".split()


...Save, Compile, Run (ctrl-enter)

def scrabble_all_plays(row, rack):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 472 Post-solution available

Copyright Nick Parlante 2017 - privacy