Unary coding is a way of representing numbers using only one digit. Imagine you have some toys to count, and you want to show how many you have using a line of dots. If you have 5 toys, you can draw 5 dots on the paper. But with unary coding, you would only need to draw one big dot for each toy you have. So if you have 5 toys, you can draw 5 big dots on the paper.
It's like counting on your fingers, but instead of showing each number with a different finger, you just keep adding to the same finger until you get to the number you want. For example, if you want to show the number 5, you would use one finger and count by adding one finger every time, until you get to 5 fingers.
Unary coding works the same way. If you want to show the number 5, you would use one symbol, like a big dot, and draw it 5 times. This is a very simple way of representing numbers, but it's not very efficient. If you have a very big number, like a million, you would need to draw a million big dots to represent it! So unary coding is usually only used for small numbers or in situations where simplicity is more important than efficiency.