besthand = "AAAAJ"
besthand = str(filter("J".__ne__, besthand))
why is the type of besthand still a filter object? I’ve seen that you can use
besthand = "".join(besthand)
but I don’t understand fully why str() doesn’t work. Is it because filter objects are iterable?
P.S. I know it’s close to being a duplicate, but I couldn’t find a specific answer to this question
New contributor
venom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.