Have you ever wondered how traffic signals function? The traffic signals have 4 states:
How does Traffic Signal Work?
- No Lights
- Red Light – STOP
- Yellow Light – LOOK
- Green Light – GO

The lights cycle through green, yellow, and red at regular intervals to control road intersections' traffic flow.

The traffic signals work in sync to prevent accidents and help to avoid congestion on the roads.

Behind the Scenes
How lines of code running in the background drive the traffic lights. The code changes the traffic signals to show different colors at regular intervals.

Sometimes it is even smarter, where the code detects congestion based on sensors and maximizes efficiency by only functioning when traffic is present.
Most of us knowingly or unknowingly engage with programming, be it inside our homes or outside. Coding, in the modern world, can be seen on the streets, at the schools, at the local grocery stores, etc. Some of the practical examples of coding in the real world are:
Application of Coding
- Interaction with bar code scanners at shopping store
- Automatic control of traffic using traffic lights
- Booking movie, bus, train, flight tickets online
- Printers
- Computer software we use like web browser, Word, etc.
- Video games and animations for entertainment
What is a Program?
A program is a set of instructions that a computer follows to complete a task. The computer receives the information, handles it, utilizes it, and then gives an output based on it by following a program.


According to Linda Liukas, a Finnish computer programmer, children's writer, and programming instructor, programming consists of three parts:
Steps in Coding
- Planning the program
- Writing the program in a programming language into a code
- Testing and debugging the program

The second part is what everybody generally considers programming. Only this part requires coding skills; the first and third parts require additional skills like problem-solving, and decomposition (the ability to break down bigger problems into smaller, manageable tasks).

.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)