A discrete variable can take on a finite, or countable, number of values within a range. In contrast, a continuous variable can take on an infinite number of values in the same range.
I offer a simple example. Highway speed limits are discrete - the sign says either 30 mph or 40 or 45 or 55. Within the range of speeds which automobiles travel, the speed limit is always a whole number. The digital speedometer on the dashboard is also discrete, in the range of speeds your automobile can operate, there is a larger, but still finite, number of possibilities - 30 mph, 31, 32, 33, and so on.
But the actual speed of the automobile is a continuous variable. If I am driving 30 mph and I go a tiny bit faster, the car can speed up to 30.1 mph, 30.15 mph, 30.1575, 30.166666666667 mph, and on forever. The possibilities are not limited by the resolution of my readout, there are in fact an infinite number of real numbers in the range of speeds which automobiles operate. I can choose to limit my view of the speed variable with a digital readout which displays only whole numbers, but in reality, velocity is a continuous variable.