The following Python code creates a(n initialized) list of n nonnegative integers, each of which is at most n-1:
a = [0] * n