Skip to content

About

Python tutorials for beginners, building up to physics and astronomy examples

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Teaching Python — From Basics to Physics & Astronomy Applications

A structured collection of Python lessons — starting from core programming fundamentals and building up to applications in physics and astronomy. Built for teaching/outreach purposes.

About

This repository holds beginner-friendly Python lessons and notebooks designed for teaching. The curriculum starts with general Python fundamentals (variables, loops, functions, data structures) and then moves into applied lessons using physics and astronomy examples — so learners see how programming connects to real scientific problems.

(Currently setting up the repository structure — first lessons coming soon.)

Who This Is For

Students and learners new to Python, especially those interested in science, physics, or astronomy — suitable for workshops, outreach sessions, or self-paced learning.

Tools & Environments

  • Google Colab — main environment for lessons (no installation needed for learners)
  • Jupyter Notebook — local development

Repository Structure

teaching-python/
│
├── 01-python-basics/
│   ├── lesson.ipynb
│   └── README.md
│
├── 02-data-structures/
│   └── ...
│
├── 0X-physics-applications/      ← later lessons applying Python to physics
│   └── ...
│
├── 0Y-astronomy-applications/    ← later lessons applying Python to astronomy
│   └── ...
│
├── requirements.txt
├── LICENSE
└── README.md

Each lesson folder will have its own short README stating: the learning objective, prerequisites (which earlier lessons to complete first), and a summary of what's covered.

Getting Started

Clone the repo:

git clone https://github.com/hafiashafqat/teaching-python.git
cd teaching-python

Install dependencies:

pip install -r requirements.txt

Or open any lesson directly in Google Colab — no setup required, ideal for teaching sessions.

Structured topics

  1. Foundations for Numerical ODE
  2. ODE Numerical methods
  3. Planetary orbit Simulation (2D)
  4. PDE heat equation

connect

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

About

Python tutorials for beginners, building up to physics and astronomy examples

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages