Skip to content

About

This Repo will Covers Fundamentals to Advanced topics like OOPS, Exceptions, Data Structure, Files, Threads, Networking, GUI, DB Connectivity, Data_Science

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Core Python



🐍 Core Python

Learn Python from scratch β€” clean examples, practice problems and notes, organised topic by topic.

Python Stars Forks Issues

License Last commit Repo size PRs welcome Status

Tech stack

Quick Start β€’ Topics β€’ Structure β€’ Commands β€’ Contributing β€’ License


πŸ“– About

Core Python is a beginner-friendly repository that covers the fundamentals of Python with small, runnable programs. Each topic has its own folder, so you can learn in order or jump straight to what you need.

  • βœ… Simple, well-commented code
  • βœ… Practice problems after every topic
  • βœ… Works on Windows, macOS and Linux
  • βœ… No external libraries needed for the core lessons

⭐ If this repository helps you, please star it. It helps other learners find it too.


πŸš€ Quick Start

Get running in under a minute.

1. Clone the repository

git clone https://github.com/yashsdhinoja/Core-Python.git

2. Move into the project folder

cd Core-Python

3. (Recommended) Create a virtual environment

πŸͺŸ Windows
python -m venv venv
venv\Scripts\activate
🍎 macOS / 🐧 Linux
python3 -m venv venv
source venv/bin/activate

4. Run any program

python 01-basics/hello_world.py

πŸ’‘ Replace the path with any .py file from the repository.


πŸ“š Topics Covered

# Topic What you will learn Level
01 Basics Variables, data types, input/output, operators 🟒 Beginner
02 Control Flow if / elif / else, loops, break, continue 🟒 Beginner
03 Data Structures Lists, tuples, sets, dictionaries, comprehensions 🟒 Beginner
04 Functions Arguments, *args / **kwargs, lambda, recursion 🟑 Intermediate
05 OOP Classes, inheritance, polymorphism, dunder methods 🟑 Intermediate
06 File Handling Read/write files, CSV, JSON 🟑 Intermediate
07 Exceptions try / except / finally, custom exceptions 🟑 Intermediate
08 Modules & Packages Imports, standard library, pip 🟑 Intermediate
09 Advanced Decorators, generators, iterators, context managers πŸ”΄ Advanced

πŸ“Œ Edit this table so it matches the folders you have actually uploaded.


πŸ“‚ Project Structure

Core-Python/
β”œβ”€β”€ 01-basics/            # variables, types, operators
β”œβ”€β”€ 02-control-flow/      # conditions and loops
β”œβ”€β”€ 03-data-structures/   # list, tuple, set, dict
β”œβ”€β”€ 04-functions/         # functions, lambda, recursion
β”œβ”€β”€ 05-oop/               # classes and objects
β”œβ”€β”€ 06-file-handling/     # files, CSV, JSON
β”œβ”€β”€ 07-exceptions/        # error handling
β”œβ”€β”€ 08-modules/           # modules and packages
β”œβ”€β”€ 09-advanced/          # decorators, generators
β”œβ”€β”€ practice/             # exercises and solutions
β”œβ”€β”€ LICENSE
└── README.md

πŸ§ͺ Example

# 01-basics/hello_world.py
name = input("Enter your name: ")
print(f"Hello, {name}! Welcome to Core Python 🐍")

Output

Enter your name: Yash
Hello, Yash! Welcome to Core Python 🐍

πŸ’» Command Cheat Sheet

🐍 Python

Task Command
Check Python version python --version
Run a script python file_name.py
Open interactive shell python
Run a module python -m module_name
Run all tests (if added) python -m unittest discover

πŸ“¦ pip

Task Command
Install a package pip install package_name
Install from file pip install -r requirements.txt
Save installed packages pip freeze > requirements.txt
List packages pip list
Upgrade pip python -m pip install --upgrade pip

🌱 Virtual environment

Task Windows macOS / Linux
Create python -m venv venv python3 -m venv venv
Activate venv\Scripts\activate source venv/bin/activate
Deactivate deactivate deactivate

πŸ”§ Git

Task Command
Get latest changes git pull origin main
Create a branch git checkout -b feature/your-feature
Stage all changes git add .
Commit git commit -m "feat: add your change"
Push git push origin feature/your-feature

πŸ—ΊοΈ Learning Roadmap

  • Python basics
  • Control flow
  • Data structures
  • Functions & recursion
  • Object-oriented programming
  • File handling
  • Exceptions
  • Modules & packages
  • Decorators & generators
  • Mini projects (calculator, to-do app, quiz game)

🀝 Contributing

Contributions, issues and feature requests are welcome!

  1. Fork this repository
  2. Create a branch: git checkout -b feature/AmazingFeature
  3. Commit your changes: git commit -m "feat: add AmazingFeature"
  4. Push to your branch: git push origin feature/AmazingFeature
  5. Open a Pull Request
Commit prefix Use for
feat: New program or topic
fix: Bug fix in an example
docs: README or notes changes
refactor: Cleaner code, same behaviour

Found a problem? Open an issue.


πŸ“œ License

Distributed under the MIT License. See LICENSE for details.


⭐ Star History

Star History Chart

πŸ† Contributors

Contributors

πŸ“¬ Connect With Me

Platform Link
GitHub @yashsdhinoja
LinkedIn Add your LinkedIn link

Happy coding! 🐍

Made with ❀️ by Yash

About

This Repo will Covers Fundamentals to Advanced topics like OOPS, Exceptions, Data Structure, Files, Threads, Networking, GUI, DB Connectivity, Data_Science

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages