How can we know that among all numbers with $3$ or fewer digits (i.e. a number $n<1000$), each digit (from $0$ to $9$) appears exactly $300$ times? I'm trying to convince myself, but I can't seem to find the right way to do so.
(If you're wondering about the context, here's the problem to which the statement above was a pretty integral part of solution:
Find the sum of the digits of all numbers in the sequence $1,2,3,4,\ldots,100$.)
I don't think that's the case for $0$ because you don't usually write a number less than $100$ by adding zero(s) to the front. However, as Mjiig pointed out, you can allow $0$ if you want to, though $0$ doesn't contribute towards the sum of digits.
Hint: prove that $1$ to $9$ each appears $100$ times in hundreds, tens, and units digit respectively, so that's $300$ times in total for each.
Something more fun: Use induction and you prove that for $n<10^k,k\in \mathbb{N^*}$, $0$ to $9$ appears exactly $k\cdot 10^{k-1}$ times