DFT practice question
You have to realize that all sequences in DFT relations are inherently periodic. This is usually understood, but it can be made explicit, for instance by that subscript. So both sources are correct, but one explicitly notes the periodicity of the sequence.

If you write down the DFT relation

$$\delta[n]=\frac{1}{N}\sum_{k=0}^{N-1}e^{j2\pi nk/N}\tag{1}$$

then you see that the expression on the right-hand side of $(1)$ is periodic in $n$ with period $N$. So $\delta[n]$ on the left-hand side is actually continued periodically. If we just consider one period, we don't care about that periodic continuation. However, if we are concerned about the behavior for all $n$, then we do need to take that periodicity into account, and we could have written $\delta_N[n]$ on the left-hand side of $(1)$ to be more explicit.

And in the given example we do care what happens outside that period because the index $l$ in the first sum extends from $-\infty$ to $\infty$.

The last step in the given equation is just a convolution of the sequence $x[n]$ with a unit impulse comb, so $x[n]$ is shifted by integer multiples of $10$ and all those shifted versions are summed up (hoping that the sum converges).