# 🐍Introduction to Python (BGE)

Pupils will build on their prior learning from block-based programming (e.g. Scratch) and begin writing real code to:

* Take input from a user
* Process data
* Display output
* Make decisions
* Repeat actions

### 🎥 Video Tutorials

### 📦 **Variables**

A **variable** is used to store information in a program.\
This allows us to save values (like names or numbers) and use them later.

➡️ *Insert video here*

***

### 🔁 **Input → Process → Output**

Most programs follow a simple structure:

* **Input** – data entered by the user
* **Process** – the program works with the data
* **Output** – the result is displayed

{% embed url="<https://canva.link/pbl36131asa3fr3>" %}

***

### 🔀 **Selection (If Statements)**

**Selection** allows a program to make decisions.\
The program can choose what to do based on a condition (e.g. if something is true or false).

➡️ *Insert video here*

***

### 🎮 **Mini Project**

Now it’s time to bring everything together.

Pupils will create a small program that uses:

* Variables
* Input and output
* Selection
* Loops

➡️ *Insert project video here*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://upskilling.stacs.scot/physical-computing-l2-bge/introduction-to-python-bge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
