I have a problem that I want to solve with itertools.imap(). However, after I imported itertools in IDLE shell and called itertools.imap(), the IDLE shell told me that itertools
You are using Python 3, therefore there is no imap function in itertools module. It was removed, because global function map now returns iterators.
imap
itertools