Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 22, 2021 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/32f6ea53bc7300e53bb13493f2b68912 to your computer and use it in GitHub Desktop.
Save amankharwal/32f6ea53bc7300e53bb13493f2b68912 to your computer and use it in GitHub Desktop.
def update_clue(guessed_letter, secret_word, clue):
index = 0
while index < len(secret_word):
if guessed_letter == secret_word[index]:
clue[index] = guessed_letter
index = index + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment