I'm working through a module on NLP, and they use this syntax to "create a dictionary that maps us from a word to its index in the word embeddings matrix."
index = {word: i for i, word in enumerate(english_words)}
I've never seen a loop that uses i for i before. I believe I understand what it's doing (taking every word at index i, and mapping it to the corresponding word in english_words. But, how does this syntax actually work? Do other languages use this syntax, or is this python-specific?