I have a problem with Python 3. I got Python 2.7 code and at the moment I am trying to update it. I get the error:
TypeError: object of type 'map' has no len()
at this part:
str(len(seed_candidates))
Before I initialized it like this:
seed_candidates = map(modify_word, wordlist)
So, can someone explain me what I have to do?
(EDIT: Previously this code example was wrong because it used set
instead of map
. It has been updated now.)