Let's think about it this way for a moment
Along one edge of the Pi board sit 40 pins arranged in 2 rows — each pin has two numbering systems (physical pin number vs BCM/GPIO number, and when writing code, BCM numbering is what's used almost universally). Each pin can be configured as Output mode (sending voltage from code to switch an LED on/off) or Input mode (reading a button press or a sensor value). There are also power pins (5V, 3.3V) and ground pins (GND) — for the circuit's power source and return path.
Let's connect this to a real-world scenario
Keep a GPIO pin layout diagram handy (a site like pinout.xyz works well) and plan out which pin you'll use for what before you start a project — connecting a power pin directly to a ground pin (a short circuit) can destroy the board, so pay close attention to your wiring diagram.
Let's look at an example together
GPIO pin categories
---------------------
Power pins → 5V, 3.3V (circuit ကို power ပေး)
Ground pins → GND (return path)
GPIO pins → Output (LED on/off) or Input (button/sensor read)
Before wiring: check pinout.xyz for your Pi model's exact layoutYou can tell apart the three GPIO pin categories: Power, Ground, and GPIO.5-Minute Try-It
Visit the pinout.xyz website (or the documentation) and copy out your Pi model's GPIO layout diagram (physical pin number vs BCM number).
A quick word of caution
It's best to power off the Pi before wiring up any GPIO pins — changing the wiring while power is on risks a short circuit that can damage the board.