Instruções
Passo 3
Enquanto você trabalha na função, seria útil ter uma chamada de função para fins de depuração, então crie uma variável
poem, fora da função, que contenha este poema:
Stars and the moon
shine in the sky
white and bright
until the end of the night
Você pode usar uma string de múltiplas linhas para isso.
E então, chame a função com a variável poem como argumento.
O que fazer:
Testes:
- Você deve ter uma variável global chamada `poem`.
- A variável `poem` deve ter um valor igual a `Stars and the moon\nshine in the sky\nwhite and bright\nuntil the end of the night`.
- Você deve chamar a função `pin_extractor` com `poem` como argumento.
Preview