🚀 Getting Started with Python

🛠 Step 1: Download and Install Python

Download Python from: python.org

Verify installation:

💻 Using Terminal / Command Prompt

Most steps below are run in a terminal (Mac/Linux) or Command Prompt / PowerShell (Windows).

⚡ This is where you will type all commands step by step.

python --version

✅ You should see something like Python 3.10.x or newer.

🛠 Step 2: Create a Project Folder

Create a new folder for your project. Here we use my-project as the project name, but you can choose any name you like (e.g., myapp, student-app).

mkdir my-project

After creating the folder, navigate into it:

cd my-project

🛠 Step 3: Create a Virtual Environment (Recommended)

This keeps your project clean and dependencies separate from your system Python.

Create it (only once):

python -m venv venv

Activate it (every time you want to run your project):

  • Windows (CMD/PowerShell):
    venv\Scripts\activate
  • Mac/Linux:
    source venv/bin/activate
💡 After activation, you should see (venv) in your terminal prompt.

🛠 Step 4: Install Required Packages

Install the packages your project needs. For example:

  • If your project uses browser automation or testing:
    pip install playwright
    playwright install
    👉 playwright install downloads browsers (Chromium, Firefox, WebKit).
  • If your project uses OpenAI (AI models):
    pip install openai
  • If you need both:
    pip install playwright openai
    playwright install

🛠 Step 5: Create Your Python Script

Create a new Python file inside your my-project folder. For example, you can name it wem_agent.py, app.py, or any name you prefer (just make sure it ends with .py).

Paste your required code inside the file. To test your setup, you can start with this simple example:

print("Hello, ASM Times – Students Corner!")

🛠 Step 6: Run the Script

Run your Python file in the terminal (replace your_file.py with the actual filename you used):

python your_file.py

✅ You should see this output in your terminal:

Hello, ASM Times – Students Corner!
💡 On some Mac/Linux systems, use python3 instead of python:
python3 your_file.py
Give Feedback