In Arduino programming, you write code called a sketch using the Arduino IDE. The sketch has two main parts: setup() and loop(). setup() runs once to prepare things like pin modes. loop() runs over and over to do the main work, like blinking an LED. In the example, setup() sets pin 13 as an output. Then loop() turns the LED on, waits one second, turns it off, waits one second, and repeats forever. Variables like pin mode and pin state change as the program runs. Beginners often wonder why setup() runs once and loop() repeats, or why pinMode is needed. The delay() function pauses the program so changes are visible. This simple structure lets you control hardware easily with Arduino.