Word wheel: Difference between revisions

Content deleted Content added
→‎{{header|Python}}: Sort unnecessary - preserves dictionary order.
Line 226: Line 226:
gridcount = Counter(grid)
gridcount = Counter(grid)
mid = grid[4]
mid = grid[4]
return sorted(word for word in dictionary
return [word for word in dictionary
if mid in word and not (Counter(word) - gridcount))
if mid in word and not (Counter(word) - gridcount)]