Welcome to Py-Gym, a GitHub repository dedicated to providing beginner-friendly Python exercises! This repository is designed to help you practice and improve your Python programming skills through a variety of exercises. Currently, I am solving exercises from W3Exercises, and I invite you to join me on this journey of learning and coding.
Py-Gym is a collection of Python exercises aimed at beginners who are just starting their programming journey. The exercises cover a wide range of topics, from basic syntax and data structures to more advanced concepts. By working through these exercises, you'll gain hands-on experience and build a strong foundation in Python programming.
To get started with Py-Gym, follow these steps:
-
Clone the Repository:
git clone https://github.com/mbahomaid/py-gym.git
-
Navigate to the Repository:
cd py-gym
-
Set Up Your Environment:
- Ensure you have Python installed on your system. You can download it from python.org.
- It's recommended to use a virtual environment to manage dependencies:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Dependencies:
- Currently, there are no external dependencies required for these exercises. However, if any are added in the future, you can install them using:
pip install -r requirements.txt
- Currently, there are no external dependencies required for these exercises. However, if any are added in the future, you can install them using:
-
Start Solving Exercises:
- Navigate to the
exercises
directory and start working on the exercises. Each exercise is contained in its own file with a description and a placeholder for your solution.
- Navigate to the
The exercises are organized by topic and difficulty level. Here's an overview of the current structure:
- Basic Exercises: These exercises cover fundamental Python concepts such as variables, data types, loops, and conditionals.
- Data Structures: Exercises focusing on lists, tuples, dictionaries, and sets.
- Functions: Practice defining and using functions, including lambda functions and recursion.
- File Handling: Learn how to read from and write to files.
- Error Handling: Exercises on using try-except blocks to handle exceptions.
- Advanced Topics: As you progress, you'll encounter exercises on more advanced topics like object-oriented programming, modules, and libraries.
Each exercise file contains a problem statement and a placeholder for your solution. Feel free to modify and experiment with the code to deepen your understanding.
Contributions to Py-Gym are welcome! If you have additional exercises, improvements, or bug fixes, please follow these steps:
-
Fork the Repository:
- Click the "Fork" button at the top right of this repository to create your own copy.
-
Create a New Branch:
- Create a new branch for your changes:
git checkout -b your-branch-name
- Create a new branch for your changes:
-
Make Your Changes:
- Add your exercises or improvements to the appropriate directory.
-
Commit Your Changes:
- Commit your changes with a descriptive message:
git commit -m "Add new exercise on lists"
- Commit your changes with a descriptive message:
-
Push to Your Fork:
- Push your changes to your forked repository:
git push origin your-branch-name
- Push your changes to your forked repository:
-
Create a Pull Request:
- Go to the original repository and click on "New Pull Request." Select your branch and describe your changes.
Your contributions will be reviewed, and once approved, they will be merged into the main repository.
Py-Gym is licensed under the MIT License. See the LICENSE file for more details.
Happy coding! If you have any questions or need help, feel free to open an issue or reach out to me. Let's grow our Python skills together! 🐍💻