Coding is writing a series of steps in a language the computer can understand so the computer would perform a given task. Such a program needs to take into account all possible scenarios and tell the computer what to do in each case. (It is more complicated than that, but this is the essence.)