Lesson 18 "Lambda Expressions"


#1

Please help i dont know what is wrong with the code or it is a bug.
This is because my ouput and the console output are the same

garbled = "IXXX aXXmX aXXXnXoXXXXXtXhXeXXXXrX sXXXXeXcXXXrXeXt mXXeXsXXXsXaXXXXXXgXeX!XX"
print filter(lambda x: x!='X', garbled)


#2

I also faced the same issue. I think it is a bug.
However when you define a variable called message, it works:
message = filter(lambda x: x!='X', garbled)
print message