# Pi 4/5 Python first success

First prepare actual Pi 4/5 with current Raspberry Pi OS64-bit, a working card/USB imaging reader and appropriate inspected supply (Pi 4 reference5 V/3 A; Pi 5 recommended5 V/5 A PD). Create your own account, enable SSH explicitly if headless, and verify actual hostname/key. Full provisioning is in the main package's Raspberry Pi guide.

Copy first_success.py to a local/SSH-accessible Pi user folder, then run `python3 first_success.py`. No third-party package, GPIO, root or network service is required. Expected stable greeting and Calculation:2+3=5, followed by actual interpreter/architecture/device-tree model. Host execution was tested; actual Pi execution was not.

Optional GPIO is separate, never needed for first success. With power removed verify physical11(BCM17) →1kΩ →red LED anode; cathode →physical6(GND), exact header orientation and no short. Pi GPIO is3.3 V, never5 V; no onboard general ADC. Install python3-gpiozero/python3-lgpio through Pi OS APT. Only after reviewing the circuit run `python3 optional_gpio_led.py --wiring-reviewed`. It uses maintained lgpio autodetection for Pi 4/5, no fixed gpiochip number. No physical GPIO test occurred here. The optional script intentionally rejects an invocation without the review flag before importing GPIO libraries.

Use `sudo shutdown -h now` and wait for a clean halt before removing supply/card. Do not image/reformat a card without selecting the right device and backing up data. Do not use rpi-update as ordinary OS maintenance or global pip overrides.
