Junior — Senior
One-line dictionary: position → character
livecode
Task condition
Given the string alphabet = 'abcdefghijklmnopqrstuvwxyz'. Create a one-line dictionary comprehension expression where each key is the position of the letter in the string, and the corresponding value is the letter itself.
Example 1: Input: 'abcdefghijklmnopqrstuvwxyz' Output: {0: 'a', 1: 'b', 2: 'c', ..., 25: 'z'}