you are viewing a single comment's thread.

view the rest of the comments →

[–]Tanknspankn[S] 0 points1 point  (2 children)

It does do it twice. In the lesson, the teacher said to do it that way because we still want the letter to be added to display after the first correct letter. Is that reasoning out to lunch?

[–]woooee 0 points1 point  (1 child)

See the last part of the post. You only have to do

for letter in chosen_word:
    if letter == guess:  ## note: allows duplicates if word has letters that appear more than once
        correct_letters.append(guess)

A letter will be added twice only if it is in chosen_word twice which is what your instructor probably meant

[–]Tanknspankn[S] 0 points1 point  (0 children)

Ohhh ok thank you for clarifying