Skip to content

DNCoding2112/basic-python

 
 

Repository files navigation

🎃 Hacktoberfest 2024 - Python Problem Solving 🎃

Welcome to the Hacktoberfest 2024 Python Problem Solving repository! This is your chance to dive into open-source, contribute to a growing library of basic Python problems, and hone your programming skills.

Whether you're a seasoned Pythonista or just getting started, this repository is the perfect place to contribute and collaborate during Hacktoberfest 2024.

🚀 What is this Repository?

This repository is dedicated to gathering basic Python problems and solutions. We aim to create a comprehensive collection of exercises that beginners and intermediate developers can use for practice. It covers everything from simple loops to more complex algorithmic challenges, helping developers sharpen their problem-solving skills.

🧠 Why Contribute?

  • Learn: Expand your Python knowledge and improve your coding skills.
  • Collaborate: Work alongside other open-source enthusiasts and programmers.
  • Celebrate: Be part of Hacktoberfest 2024, earn cool swag, and gain experience contributing to real projects.

🌟 What Kind of Python Problems Are We Looking For?

We are looking for basic to intermediate level Python problems, including but not limited to:

  • Basic Syntax: Loops, conditionals, functions, etc.
  • Data Structures: Lists, dictionaries, sets, tuples, etc.
  • String Manipulation: Common string operations, reversing, palindrome checks, etc.
  • Recursion: Factorials, Fibonacci sequences, etc.
  • Sorting and Searching: Implementations of common algorithms.
  • Mathematical Problems: Prime numbers, GCD, LCM, etc.
  • Miscellaneous: Other interesting Python challenges that help developers learn and grow.

Feel free to contribute problems in any of the above categories or propose your own.

🛠️ How to Contribute

We welcome contributions from everyone! Whether you're adding a new problem, optimizing existing solutions, or improving the documentation, your contributions are valuable.

Steps to Contribute:

  1. Fork this Repository: Click the Fork button at the top-right of this page to create a copy of the repository in your GitHub account.
  2. Clone Your Fork: Clone your forked repository to your local machine using:
    git clone https://github.com/jayadevvasudevan/basic-python/<your-username>/
    cd BASIC-PYTHON
  3. Create a New Branch: Make a new branch for your contribution:
    git checkout -b <your-branch-name>
  4. Add Your Contribution: Add your Python problem and its solution to the relevant category. Follow the Contribution Guidelines for structure and formatting.
  5. Commit and Push: Commit your changes and push the branch to your fork:
    git add .
    git commit -m "Added <problem-description>"
    git push origin <your-branch-name>
  6. Open a Pull Request: Head over to the original repository and open a pull request to merge your changes.

Contribution Guidelines

  • Ensure that the problem title is clear and concise.
  • Each problem should be accompanied by a solution with clear comments explaining the code.
  • Properly format your code using Python best practices (e.g., PEP8 standards).
  • Include example input/output wherever possible.

🎉 Hacktoberfest 2024

This repository is part of Hacktoberfest 2024, a month-long celebration of open-source software. You can participate by submitting at least 4 pull requests between October 1st and October 31st to qualify for a limited edition Hacktoberfest t-shirt and other swag.

To participate:

  1. Register at Hacktoberfest and make sure to sign up before contributing.
  2. Contribute by submitting pull requests to open-source projects (including this one!).
  3. Enjoy the process and the rewards!

📁 Repository Structure

This repository is now organized into logical folders for easier navigation:

  • algorithms/ - Searching, sorting, and LeetCode-style problems (17 files)
  • data_structures/ - Data structure implementations ⚠️ Currently empty - contributions welcome!
  • basic_programs/ - Fundamental Python programs for beginners (23 files)
  • advanced_concepts/ - OOP, decorators, regex, JSON, file operations (5 files)
  • games/ - Interactive games and fun projects (3 files + 2 game folders)
  • utilities/ - Useful tools and utilities (6 files)
  • web_scraping/ - Web scraping projects (1 file + 2 folders)
  • Competitive_program/ - Competitive programming solutions
  • file handling/ - File I/O operations and examples
  • problem/ - Additional coding challenges

📖 See FOLDER_STRUCTURE.md for detailed file listings and descriptions.

�🔧 Installation & Setup

  1. Clone the repository:
    git clone https://github.com/jayadevvasudevan/basic-python
  2. Navigate into the project directory:
    cd basic-python
  3. Run any Python script:
    # Example: Run a basic program
    python basic_programs/Factorial.py
    
    # Example: Run an algorithm
    python algorithms/binary_search.py
    
    # Example: Run advanced concepts
    python advanced_concepts/oop_concepts.py

🧑‍💻 Prerequisites

  • Python: Ensure that Python 3.x is installed on your system. You can download it from python.org.
  • Basic Knowledge of Python: This project assumes basic familiarity with Python programming.

Happy coding and have fun contributing! 🎉🐍

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%