O'Reilly logo
  • JESUS FRANCO thinks this is interesting:

As a simple dict comprehension example, we could create a lookup map of these strings to their locations in the list:

From

Cover of Python for Data Analysis, 2nd Edition

Note

Error: dict index must be unique