I want to create a dict with dict comprehension where self.students[i] are some names and j should be 0,2,4,6,8.
Right now x returns
{'Patricia': 6, 'Roger': 6, 'Samantha': 6, 'Xander': 6}
What I want it to return is
{'Patricia': 0, 'Roger': 2, 'Samantha': 4, 'Xander': 6}`
Here is the code
x = {self.students[i] : j for i in range(0,len(self.students)) for j in range(0,len(self.students)+3, 2)}