#!/usr/bin/env python3
"""First Linux/Python success. No GPIO, network service or extra package."""
import platform
from pathlib import Path

def model_name():
    model = Path("/proc/device-tree/model")
    try:
        return model.read_bytes().rstrip(b"\x00").decode("utf-8")
    except OSError:
        return "Unavailable: host execution does not establish a Raspberry Pi"

def main():
    print("Engineering Club: Python is running")
    print("Calculation: 2 + 3 =", 2 + 3)
    print("Python:", platform.python_version())
    print("Machine:", platform.machine())
    print("Model:", model_name())

if __name__ == "__main__":
    main()
