Revise GCSE Physics

Question:Why does using light to communicate require the use of a code?

A code is needed so that the receiver will understand what the light that is sent is supposed to mean.

Light does not usually provide any information by itself it just acts as a medium to carry the information.