Skip to content

Python basics to advance. OOP | Numpy | Pandas | Jupyter Notebook & more.

Notifications You must be signed in to change notification settings

Sarmad426/Python

Repository files navigation

Python Roadmap

Python is a versatile, high-level programming language known for its simplicity and readability, making it ideal for both beginners and experienced developers. Its vast ecosystem of libraries and frameworks supports a wide range of applications, from web development and automation to data science, artificial intelligence, and machine learning.

Why Python:

Python's demand has surged due to its pivotal role in emerging technologies like AI, big data, and cloud computing. Companies favor Python for its efficiency in rapid prototyping and scalability, making it a go-to language for startups and large enterprises alike. Learning Python opens doors to a broad spectrum of tech fields, ensuring relevance in the ever-evolving job market.

Repository Content:

  1. Data Types
  2. Conditions
  3. Loops
  4. Functions
  5. Exceptions
  6. Libraries
  7. Unit Tests
  8. File Handling
  9. Regular Expression (REGEX)
  10. OOP
  11. NumPy
  12. Pandas

Object-Oriented Programming (OOP) with Python

Pillars of OOP

Inheritance

  • Multiple inheritance
  • Multi-level inheritance

Other Topics of OOP

  • Classes and objects
  • Constructor
  • decorators
  • Getters and setters
  • Methods (class functions)
  • Duck Typing
  • Operator overloading

Projects

Python 3.12 Project Setup

Python 3.12 type hinting. Basics and Advanced Object Oriented Programming.

Install MyPy Extension

First install the MyPy extension in your editor. (vscode) Also install pip package.

pip install mypy

This extension and package will check the typing errors in python file much like Typescript.

Wanna install all the packages for the repository.

pip install -r requirements.txt

Update Conda to Python 3.12 by creating Virtual Environment

conda create -n py_12 python==3.12 -y

This will create a virtual Environment. -n means name of the virtual env. -y is yes for all installation questions.

Activate Virtual Env

conda env list

Check the Available virtual env list.

conda activate py_12

Check Python Version

python --version

Create and Activate Virtual Environment using pip

python -m venv venv

Activate it:

.\venv\Scripts\activate

Once activated, your command prompt will change to show the name of the virtual environment in parentheses, indicating that it's active. For example:

(venv) C:\path\to\your\project>

Verify activation

where python

Now you can install any package inside the virtual environment.

pip install requests

Deactivating Virtual environment:

deactivate

Learn more

Learn DSA with python. https://github.com/Sarmad426/DSA-Python

Back end API development using Fast API. https://github.com/Sarmad426/FastAPI

Learn AI and Data Science. https://github.com/Sarmad426/AI

Learn Generative AI. https://github.com/Sarmad426/Generative-AI