Lambda Expressions--bug in checker?


"Oops, try again. It looks like your message is "I am the secret message!" instead of "I am another secret message!"

In the console, it clearly prints, "I am another secret message!" then None. I cannot get the system to recognize that it is actually printing what was asked for.

print filter(lambda x: x != "X", garbled)

I even tried testing it by commenting out the line of code I wrote and putting 'print "I am another secret message!"' and it still throws the same error.

Thanks for any help,


It seems like a glitch, Refresh and submit again!


you need to store the result of filter in a variable named message and then print message


It worked without saving it to a variable,(i just tested it).


I shall do that, but it is unnecessary. I ran it in my installation of Python on my machine and it works the same way that it does in the console.

Update: after storing the filter in var message, and printing message, it works. When Codecademy specifies message in a little button, I will make sure and make a message.

Thanks, all!!


Weird, It worked for me without/with defining the variable! (maybe cus I already passed it)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.