This repository contains a collection of small Python examples and exercises organized by topic. It's intended as a personal learning workspace with runnable snippets and simple tasks.
conditional_statement/— examples ofifstatementsdataType/— basic data type demos and sequencesdayOne/— first-day exercisesException_handling/— exception handling examplesFileHandling/— file I/O examples (includesmsg.txt)function/— functions, arguments, decorators, iteratorsloop/— loop examples and list comprehensionsmodule/— module examples and external usageoop/— object-oriented programming examplesoperator/— operator precedence and usagepractice— practice scripts and problem solvingtask/— larger tasks and mini-projects (e.g.,atm.py,bank.py)variable/— variable examples
-
Clone the repo (if you haven't already):
git clone https://github.com/SuzanLama433/Python_learning.git
-
(Optional) Create or activate the virtual environment on macOS:
python3 -m venv venv source venv/bin/activate
-
Run a script, for example the ATM demo:
python task/atm.py
- Add small, focused examples under the appropriate folder.
- Keep scripts runnable and avoid hard-coded paths.
If you want to add this README and push it to the existing remote, run:
cd /Users/sujan/Desktop/python
git add README.md
git commit -m "Add README"
git push origin main
Replace main with your branch name if different. Pushing may prompt for credentials depending on your Git configuration.
- This repo contains a local
venv/directory; consider adding it to.gitignoreif you don't want to push it to GitHub. - Many scripts are intended for educational use; review inputs before running.
Created for easy navigation and quick demos.
This repository is hosted at: https://github.com/SuzanLama433/Python_learning
README last updated: 2026-06-07.
This project contains a local venv/ folder. It's recommended to add a .gitignore file including at least:
venv/__pycache__/*.pyc.DS_Store
You can create a .gitignore at the repo root and commit it to avoid pushing virtualenv and cache files.