List Slicing


#1



I get error message even if the code is right. I know, maybe the code needs to be written in a certain way but... Could anyone help me on this? Thanks.


Oops, try again. Make sure to use list slicing and a negative stride in your answer!


arbled = "!XeXgXaXsXsXeXmX XtXeXrXcXeXsX XeXhXtX XmXaX XI"

print(filter(lambda x: x != "X", arbled[::-1]))


#2

you print the filter action directly, you should first store the result in a variable called message. then print message


#3

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