primes len(primes list(range( )valid indices [ [ now that we have the range object we can move on to one of the most important uses of it so far we have used for loop to step through the values in list from time to time it is important to be able to step through the valid indices of the list observe that if we apply the range(function to single number which is the length of list then we get list of the valid indices for that list