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:
- Data Types
- Conditions
- Loops
- Functions
- Exceptions
- Libraries
- Unit Tests
- File Handling
- Regular Expression (REGEX)
- OOP
- NumPy
- Pandas
- Multiple inheritance
- Multi-level inheritance
- Classes and objects
- Constructor
- decorators
- Getters and setters
- Methods (class functions)
- Duck Typing
- Operator overloading
- Library Management System (OOP) program
- Python GUI Calculator
Python 3.12 type hinting. Basics and Advanced Object Oriented Programming.
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
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.
conda env list
Check the Available virtual env list.
conda activate py_12
Check Python Version
python --version
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 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