What is the difference between discrete and discreet?

The  two words sound the same and they look almost the same, but they have very different meanings.

Discrete means separate, distinct, individual, disconnected.

With the lens out of focus we get a number of discrete colour blobs.

We can talk about the discrete parts of a network system.

In mathematics and statistics, a discrete variable is obtained by counting and a continuous variable is obtained by measuring.

Discreet means unobtrusive, cautious, tactful, diplomatic, considerate, not attracting attention.

If a friend tells you something confidential, you should be discreet with that information and not tell anybody else.