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



spellingBee(correct, guess) -- Given the correct spelling of a word, correct, and the contestant's guessed spelling, guess, return the string "correct" if the guess is spelled exactly correctly, "almost" if there are at most two mistakes in the spelling, and "wrong" if three or more letters are different. You can assume that all guesses are the correct length.

spellingBee('hello', 'hello') → 'correct'
spellingBee('python', 'python') → 'correct'
spellingBee('hello', 'hallo') → 'almost'

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

def spellingBee(correct, guess):

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

Copyright Nick Parlante 2017 - privacy