TanvirAnjumApurbo / python_crash_course

A hands-on guide to learning Python, based on the book Python Crash Course by Eric Matthes. Explore 11 chapters covering Python basics, data structures, functions, OOP, and testing. Includes practical examples and pytest tests. Contributions welcome!

Repository from Github https://github.comTanvirAnjumApurbo/python_crash_courseRepository from Github https://github.comTanvirAnjumApurbo/python_crash_course

🐍 Python Crash Course

Welcome to the Python Crash Course project! This repository is a comprehensive guide designed to help you master the fundamentals of Python programming. The project is structured into multiple chapters, each focusing on different core aspects of Python. Whether you're a beginner or looking to refresh your Python skills, this project has you covered.

πŸ“‚ Project Structure

The project is organized into the following key directories:

1. src/ - Source Code

This directory contains all the main code, organized into chapters:

  • c01/: Chapter 1 - Getting Started
  • c02/: Chapter 2 - Variables and Simple Data Types
  • c03/: Chapter 3 - Introducing Lists
  • c04/: Chapter 4 - Working with Lists
  • c05/: Chapter 5 - if Statements
  • c06/: Chapter 6 - Dictionaries
  • c07/: Chapter 7 - User Input and while Loops
  • c08/: Chapter 8 - Functions
  • c09/: Chapter 9 - Classes
  • c10/: Chapter 10 - Files and Exceptions
  • c11/: Chapter 11 - Testing Your Code

Additionally, there is a data/ folder within src/ that stores all the data used across various chapters.

2. tests/ - Unit Tests

This directory contains the pytest unit tests for the project, particularly related to Chapter 11: Testing Your Code. These tests ensure that the code written in src/c11/ is functioning correctly.

πŸ“š Chapters and Topics

Chapter 1: Getting Started

Kick off your Python journey by setting up your environment and writing your first Python program.

Chapter 2: Variables and Simple Data Types

Learn how to work with variables, strings, numbers, and other basic data types.

Chapter 3: Introducing Lists

Discover how to create, modify, and loop through lists.

Chapter 4: Working with Lists

Expand your knowledge of lists by learning about slicing, sorting, and more advanced list operations.

Chapter 5: if Statements

Understand the logic behind decision-making in Python using if-elif-else statements.

Chapter 6: Dictionaries

Explore dictionaries and learn how to store key-value pairs in Python.

Chapter 7: User Input and while Loops

Dive into loops and user input to create interactive programs.

Chapter 8: Functions

Master the art of writing reusable code with functions.

Chapter 9: Classes

Get introduced to Object-Oriented Programming (OOP) by learning about classes and objects.

Chapter 10: Files and Exceptions

Learn how to work with files and handle exceptions in your code.

Chapter 11: Testing Your Code

Understand the importance of testing your code and how to use pytest to ensure your programs work as expected.

πŸš€ Getting Started

To get started with the project, clone this repository and navigate to the project directory:

git clone https://github.com/TanvirAnjumApurbo/python_crash_course.git
cd python_crash_course

🀝 Contribution

Contributions

Contributions are welcome! Please feel free to fork this repository, make changes, and submit a pull request. Whether it's improving documentation, fixing bugs, or adding new features, your help is appreciated.

πŸ“„ License

License

This project is licensed under the MIT License. See the LICENSE file for more details.

πŸ’‘ Credits

Credits

This project is inspired by the famous book Python Crash Course by Eric Matthes. If you’re new to Python or looking to brush up on your skills, I highly recommend purchasing this book as it offers a comprehensive and hands-on approach to learning Python.

πŸ”— Connect with Me

Connect with Me

Feel free to connect with me on LinkedIn. I’m always open to discussing new opportunities, collaborations, and Python programming!

Happy coding! πŸš€

Made with Python

About

A hands-on guide to learning Python, based on the book Python Crash Course by Eric Matthes. Explore 11 chapters covering Python basics, data structures, functions, OOP, and testing. Includes practical examples and pytest tests. Contributions welcome!

License:MIT License


Languages

Language:Python 100.0%