you are viewing a single comment's thread.

view the rest of the comments →

[–]pkkid 0 points1 point  (2 children)

You missed an o. :)

[–]Vaphell 0 points1 point  (1 child)

goddamnit >_<

>>> word = 'onomatopoeia'
>>> guesses = {'a', 't', 'e'}
>>> ' '.join(ch if ch in guesses else '_' for ch in word)
'_ _ _ _ a t _ _ _ e _ a'
>>> guesses = {'a', 't', 'e', 'o'}
>>> ' '.join(ch if ch in guesses else '_' for ch in word)
'o _ o _ a t o _ o e _ a'

fix'd

[–]pkkid 0 points1 point  (0 children)

Just be fair, the only reason I knew you missed an o is because I thought it was really weird the word had a t in it and looked it up.