This repository contains a collection of Python programs and Jupyter notebooks that I have implemented while learning programming fundamentals and problem-solving.
Each topic is explained briefly, and the corresponding notebook can be opened directly in Google Colab or previewed on GitHub.
In this repository, every notebook has two links:
- 📄 View on GitHub – Quickly preview the notebook and code without leaving GitHub. Useful if you just want to read or review.
- 🚀 Open in Colab – Instantly run, edit, and experiment with the code in Google Colab (no installation or setup required).
👉 This approach helps students in two ways:
- Study the logic directly on GitHub.
- Practice hands-on coding on Colab.
-
User Input – How to take input from the user.
📄 View on GitHub | 🚀 Open in Colab -
Type Casting – Converting between data types (int, float, str, etc.).
📄 View on GitHub | 🚀 Open in Colab -
Operators – Arithmetic, comparison, logical, and assignment operators.
📄 View on GitHub | 🚀 Open in Colab
-
Conditional Statements – Using
if,elif, andelse.
📄 View on GitHub | 🚀 Open in Colab -
Repetitive Structures (Loops) – Understanding loops in Python.
📄 View on GitHub | 🚀 Open in Colab -
Extra Practice on Loops – Additional exercises.
📄 View on GitHub | 🚀 Open in Colab
-
For Loops & Range – Iteration using
forloops withrange().
📄 View on GitHub | 🚀 Open in Colab -
Nested While Loops – Using multiple
whileloops and loop control (break,continue).
📄 View on GitHub | 🚀 Open in Colab
-
Functions – Defining, calling, and using parameters and return values.
📄 View on GitHub | 🚀 Open in Colab -
Recursion – Recursive functions like factorial and Fibonacci.
📄 View on GitHub | 🚀 Open in Colab
-
Strings – String operations, methods, and manipulations.
📄 View on GitHub | 🚀 Open in Colab -
Lists – Creating, indexing, slicing, updating, and iterating lists.
📄 View on GitHub | 🚀 Open in Colab -
Dictionaries – Key–value storage, updating, and retrieving data.
📄 View on GitHub | 🚀 Open in Colab -
Swapping Values – Different ways of swapping values in Python.
📄 View on GitHub | 🚀 Open in Colab
-
Converter Programs – Examples like unit and temperature converters.
📄 View on GitHub | 🚀 Open in Colab -
Assignment 01 – Practice problems covering basics of Python.
📄 View on GitHub | 🚀 Open in Colab -
Midterm Practice – Problem-solving exercises for midterm preparation.
📄 View on GitHub | 🚀 Open in Colab
- OOP Basics – Introduction to classes, objects, attributes, and methods.
📄 View on GitHub | 🚀 Open in Colab
⚠️ Important:
You can open and edit these notebooks in Google Colab for practice.
However, any changes you make will only affect your copy in Colab —
the original files in this GitHub repository will remain unchanged.
Clone the repository and open the notebooks using Google Colab or Jupyter Notebook:
git clone https://github.com/mibrahim-O2/Python_Programs.git
cd Python_Programs
jupyter notebook