DEV Community

Discussion on: Python challenge: can you solve this in a readable and efficient way?

Collapse
 
ryanlwh profile image
Ryan Lee • Edited
from itertools import pairwise
search_tags_dict = dict(pairwise(search_tags))
Enter fullscreen mode Exit fullscreen mode