Build a Pin Extractor - Step 3

Tell us what’s happening:

I am a little confused here. I have done everything that has been asked. I read on another post that we shouldn’t be using ‘print’ but is this not the only way to call poem?

Below is my code:
“poem = “”“Stars and the moon
shine in the sky
white and bright
until the end of the night””"

def pin_extractor(poem):
secret_code = ‘’
return poem

print(pin_extractor[poem])"

Thankyou very much in advance!

Your code so far


# User Editable Region

poem = """Stars and the moon
shine in the sky
white and bright
until the end of the night"""

def pin_extractor(poem):
    secret_code = ' '
    return poem
print(poem(pin_extractor))

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0

Challenge Information:

Build a Pin Extractor - Step 3
https://www.freecodecamp.org/learn/full-stack-developer/workshop-pin-extractor/step-3

no, print is the way to print the value to the terminal, at this time you are asked only to call the function, but not print its value to the terminal

the function does not have a return statement right now (even if you added it that is not in the instructions), so there is nothing to print to the terminal yet

1 Like