Skip to content

Shavitjnr/Python-Course

Repository files navigation

Python Course - Complete Learning Journey 🐍

Welcome to my comprehensive Python programming course repository! This repository contains my complete learning journey through Python programming, from basic concepts to advanced topics, along with practical projects and hands-on exercises.

📚 Course Structure

This repository is organized into 13 comprehensive chapters, each covering essential Python concepts with practical examples and exercises.

🎯 Chapters Overview

Chapter Topic Key Concepts
Chapter 1 Introduction to Python Basic setup, modules, first programs
Chapter 2 Variables & Data Types Variables, operators, input/output
Chapter 3 Strings String manipulation, slicing, escape sequences
Chapter 4 Lists & Tuples Data structures, indexing, methods
Chapter 5 Sets Set operations, unions, intersections
Chapter 6 Conditionals If-else statements, logical operators
Chapter 7 Loops For loops, while loops, control statements
Chapter 8 Functions Function definition, arguments, recursion
Chapter 9 File Handling Reading/writing files, file operations
Chapter 10 Classes & Objects OOP basics, classes, attributes
Chapter 11 Inheritance Multiple inheritance, method overriding
Chapter 12 Advanced Python Walrus operator, exceptions, comprehensions
Chapter 13 Advanced Topics Virtual environments, lambda, functional programming

🚀 Projects

Mini Projects

  • Project 1: Snake, Water, Gun Game 🎮
  • Project 2: Number Guessing Game 🎯

Mega Project: Jarvis Voice Assistant 🤖

A sophisticated voice-controlled AI assistant with the following features:

  • Voice Recognition: Speech-to-text conversion
  • Text-to-Speech: Natural voice responses
  • Web Automation: Open websites with voice commands
  • Music Player: Play songs from YouTube library
  • News Reader: Get latest headlines
  • AI Integration: OpenAI-powered responses
  • Wake Word Detection: "Jarvis" activation

Features:

  • 🎤 Voice command recognition
  • 🌐 Web browser automation
  • 🎵 Music playback from YouTube
  • 📰 Real-time news updates
  • 🤖 AI-powered responses
  • 🎯 Wake word detection

🛠️ Technologies & Libraries Used

Core Python

  • Python 3.x
  • Standard library modules

Voice Assistant (Mega Project)

  • SpeechRecognition - Voice input processing
  • pyttsx3 - Text-to-speech synthesis
  • pygame - Audio playback
  • gTTS - Google Text-to-Speech
  • OpenAI - AI-powered responses
  • requests - HTTP requests for APIs
  • python-dotenv - Environment variable management

📁 Repository Structure

Python-Course/
├── Chapter 1/          # Introduction & Basics
├── Chapter 2/          # Variables & Data Types
├── Chapter 3/          # Strings
├── Chapter 4/          # Lists & Tuples
├── Chapter 5/          # Sets
├── Chapter 6/          # Conditionals
├── Chapter 7/          # Loops
├── Chapter 8/          # Functions
├── Chapter 9/          # File Handling
├── Chapter 10/         # Classes & Objects
├── Chapter 11/         # Inheritance
├── Chapter 12/         # Advanced Python
├── Chapter 13/         # Advanced Topics
├── Project 1/          # Snake, Water, Gun Game
├── Project 2/          # Number Guessing Game
└── Mega Project/       # Jarvis Voice Assistant
    ├── main.py         # Main application
    ├── client.py       # OpenAI client
    ├── musicLibrary.py # Music database
    ├── test_songs.py   # Testing utilities
    ├── requirements.txt # Dependencies
    └── README.md       # Project documentation

🚀 Getting Started

Prerequisites

  • Python 3.7 or higher
  • pip (Python package installer)

Installation

  1. Clone the repository

    git clone https://github.com/Shavitjnr/Python-Course.git
    cd Python-Course
  2. For the Voice Assistant (Mega Project)

    cd "Mega Project"
    pip install -r requirements.txt
  3. Set up environment variables

    # Create a .env file
    echo "OPENAI_API_KEY=your_openai_api_key_here" > .env
    echo "NEWS_API_KEY=your_news_api_key_here" >> .env

🎮 Running Projects

Mini Projects

# Snake, Water, Gun Game
python "Project 1/main.py"

# Number Guessing Game
python "Project 2/main.py"

Voice Assistant

cd "Mega Project"
python main.py

Voice Commands:

  • "Jarvis" (wake word)
  • "Open Google"
  • "Play [song name]"
  • "Tell me the news"
  • "What's the weather?"

📖 Learning Path

Beginner Level (Chapters 1-6)

  • Python basics and syntax
  • Variables, data types, and operators
  • Strings and data structures
  • Control flow and conditionals

Intermediate Level (Chapters 7-9)

  • Loops and iterations
  • Functions and modular programming
  • File handling and I/O operations

Advanced Level (Chapters 10-13)

  • Object-oriented programming
  • Inheritance and polymorphism
  • Advanced Python features
  • Modern Python practices

🔧 Practice Sets

Each chapter includes comprehensive practice sets with:

  • Conceptual questions
  • Coding exercises
  • Real-world problems
  • Debugging challenges

🤝 Contributing

This is a personal learning repository, but suggestions and improvements are welcome! Feel free to:

  • Report bugs or issues
  • Suggest improvements
  • Share additional learning resources

📝 License

This project is for educational purposes. Feel free to use the code for learning and personal projects.

🎯 Learning Outcomes

By completing this course, you'll have:

  • ✅ Strong foundation in Python programming
  • ✅ Understanding of OOP concepts
  • ✅ Experience with real-world projects
  • ✅ Knowledge of modern Python practices
  • ✅ Skills to build voice-controlled applications
  • ✅ Ability to work with APIs and external services

📞 Contact


Star this repository if you find it helpful for your Python learning journey!

Happy Coding! 🐍✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages