A comprehensive Python programming repository covering fundamental to advanced concepts, with a focus on AI and development applications.
This repository serves as a complete learning path for Python programming, covering essential concepts, object-oriented programming, and practical applications. Perfect for beginners starting their journey in Python and those interested in AI development.
- Data Types and Variables
- Control Flow (if-else statements)
- Loops and Iterations
- Functions and Lambda Expressions
- Exception Handling
- File Operations
- Object-Oriented Programming (OOP)
- Decorators and Closures
- High-Order Functions
- Asynchronous Programming
- Recursion
- Scope and Context
- Lists and Tuples
- Dictionaries
- Sets
- String Formatting
A complete banking system implementation demonstrating OOP principles:
# Example from challange/bank_account.py
class BankAccount:
def __init__(self, account_holder, initial_balance=0):
self.holder = account_holder
self.balance = initial_balance
An interactive command-line game with multiple implementations:
- Using loops (rock-scissor-paper-game/loops.py)
- Using recursion (rock-scissor-paper-game/recursive.py)
- Using closures (rock-scissor-paper-game/closures.py)
A simple chatbot showcasing:
- Natural language processing basics
- User input handling
- Response generation
An arcade-style number guessing game demonstrating:
- Random number generation
- User input validation
- Score tracking
├── anaconda/ # Anaconda integration examples
├── asyncio/ # Asynchronous programming demos
├── challange/ # Practice challenges and solutions
├── chotbot/ # Chatbot implementation
├── modules/ # Custom Python modules
├── oops/ # Object-Oriented Programming examples
└── virtual_envirnmont/# Virtual environment setup and dependencies
-
Clone the repository:
git clone https://github.com/Rafiqdevhub/Python.git
-
Set up the virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
# Key packages from virtual_envirnmont/requirements.txt
requests>=2.28.0
python-dotenv>=0.20.0
qrcode>=7.3.1
- Python 3.x
- Basic understanding of programming concepts
- pip (Python package installer)
# Example from High_order_functions/map.py
numbers = [1, 2, 3, 4, 5]
squared = map(lambda x: x**2, numbers)
# Example from oops/inheritance.py
class Animal:
def speak(self):
pass
class Dog(Animal):
def speak(self):
return "Woof!"
Contributions are welcome! Feel free to:
- Report bugs
- Suggest enhancements
- Submit pull requests
Please read our contributing guidelines before making a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this repository helpful, please consider:
- Giving it a star ⭐
- Forking it to contribute
- Sharing it with others
For questions or suggestions:
- Open an issue in this repository
- Email: rafkhan9323@gmail.com
-
Basics (Start Here)
- Data Types (data_types/)
- Control Flow (if-else/)
- Loops (loops/)
-
Intermediate
- Functions (functions/)
- Error Handling (exception/)
- File Operations (files_handling/)
-
Advanced
- OOP (oops/)
- Decorators (decorators/)
- Async Programming (asyncio/)
-
Projects
- Banking System
- Games
- Chatbot
⚡ Happy Coding! Remember: The best way to learn Python is by practicing! 🐍
Note: Make sure to check each directory's README for specific instructions and requirements.