I wonder if there is a way to use e.g. a list comprehension without an iteration variable if I do not need it? For example, in this sample of code:
a = [random.randrange(-10, 11) / 10 for i in range(100)]
I get a warning "Local variable 'i' value is not used". Is there any variant of the list comprehension construct without iteration variable?