Quotes help make search much faster. Example: "Practice Makes Perfect"

Saturday, December 1, 2012

Codecademy: Lambda Expressions


#sample solution


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

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts