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.
The project is organized into the following key directories:
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.
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.
Kick off your Python journey by setting up your environment and writing your first Python program.
Learn how to work with variables, strings, numbers, and other basic data types.
Discover how to create, modify, and loop through lists.
Expand your knowledge of lists by learning about slicing, sorting, and more advanced list operations.
Understand the logic behind decision-making in Python using if-elif-else statements.
Explore dictionaries and learn how to store key-value pairs in Python.
Dive into loops and user input to create interactive programs.
Master the art of writing reusable code with functions.
Get introduced to Object-Oriented Programming (OOP) by learning about classes and objects.
Learn how to work with files and handle exceptions in your code.
Understand the importance of testing your code and how to use pytest
to ensure your programs work as expected.
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
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.
This project is licensed under the MIT License. See the LICENSE file for more details.
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.
Feel free to connect with me on LinkedIn. Iβm always open to discussing new opportunities, collaborations, and Python programming!