Hello Friends,I need explanation for
Although ,I solved the challenge ,I still can't wrap my head with this "Lambda" thing.I don't get how the computer understands my code
garbled = "IXXX aXXmX aXXXnXoXXXXXtXhXeXXXXrX sXXXXeXcXXXrXeXt mXXeXsXXXsXaXXXXXXgXeX!XX" message=filter(lambda i:i!="X",garbled) print message
Can anybody explain me how does,I am trying to solve this problem by
usual function style.Following is my code:
def deCrypt(str): message="" for i in str: if i!="X": return message+i return message print deCrypt(garbled)
It is not working .Can somebody help me ?.Thanks in advance.