This is my solution resulting in an error. Returns 0
PS: I\'d still love a fix to my code :)
from collections import Counter import
word_display = "" for letter in word: if letter in known: word_display = "%s%s " % (word_display, letter) else: word_display = "%s_ " % word_display return word_display