Is it possible to create a dictionary comprehension in Python (for the keys)?
Without list comprehensions, you can use something like this:
l = [] fo
Use dict() on a list of tuples, this solution will allow you to have arbitrary values in each list, so long as they are the same length
i_s = range(1, 11) x_s = range(1, 11) # x_s = range(11, 1, -1) # Also works d = dict([(i_s[index], x_s[index], ) for index in range(len(i_s))])