I am trying the following lines to keep only the digits
>>> s = "H3ll0 P30P13"
>>> filter(lambda x: x.isdigit(), s)
'303013'
But what I got is not '303013' but I got <filter at 0x1888b671408>
. I am using Spyder IDE
I am trying the following lines to keep only the digits
>>> s = "H3ll0 P30P13"
>>> filter(lambda x: x.isdigit(), s)
'303013'
But what I got is not '303013' but I got <filter at 0x1888b671408>
. I am using Spyder IDE