Me dê uma dica

Published by Joshua Señoron in

Dada uma frase, retorne uma lista de strings que revela gradualmente a próxima letra de cada palavra ao mesmo tempo. Use sublinhados para ocultar as letras restantes.

Exemplos

grant_the_hint("Mary Queen of Scots") ➞ [
  "____ _____ __ _____",
  "M___ Q____ o_ S____",
  "Ma__ Qu___ of Sc___",
  "Mar_ Que__ of Sco__",
  "Mary Quee_ of Scot_",
  "Mary Queen of Scots"
]

grant_the_hint("The Life of Pi") ➞ [
  "___ ____ __ __",
  "T__ L___ o_ P_",
  "Th_ Li__ of Pi",
  "The Lif_ of Pi",
  "The Life of Pi"
]

Notas

Mantenha as maiúsculas e minúsculas.