Thanks for your interest in contributing. This guide explains how to add content, fix issues, and submit changes.
- Add practice problems to the
Learning/directory - Fix bugs or typos in existing code files
- Improve comments and explanations in lecture files
- Add new projects to the
Projects/directory - Update the README with better structure or corrected information
- Keep it beginner-friendly. This repo targets people learning Python for the first time. Avoid advanced or obscure patterns.
- Add clear comments. Every code file should have comments explaining what each section does.
- Follow the naming convention. Lecture files should follow the format
LecN-Topic Name.py. Practice files should be namedLecN Prac.py. - Test your code. Make sure every file you add or modify runs without errors using Python 3.8+.
- One concept per file. Don't combine unrelated topics into a single file.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/your-username/Python-Starting-from-0.git
- Create a branch for your change:
git checkout -b add-string-practice
- Make your changes and verify they work:
python Learning/your-file.py
- Commit with a clear message:
git commit -m "Add practice problems for string operations" - Push to your fork:
git push origin add-string-practice
- Open a pull request on the original repository with a description of what you changed and why.
# LecN-Topic Name.py
# Description: Brief explanation of what this file covers
# --- Section 1: Core Concept ---
# Explanation of the concept
example_code = "demonstration"
print(example_code)
# --- Section 2: Practice ---
# Interactive or practice examples# LecN Prac.py
# Practice problems for Topic Name
# Try solving each problem before looking at the solution
# Problem 1: Description of the problem
# Your code here
# Solution (hidden below)
# -----------------------------------------------
# solution_code = "answer"# ProjectName.py
# A short description of what this project does
# Concepts used: concept1, concept2, concept3
# ImplementationIf you find a bug or have a suggestion:
- Check existing issues to avoid duplicates.
- Open a new issue with a clear title and description.
- Include the file name, line number, and what you expected vs. what happened.
- Use snake_case for variable and function names
- Use PascalCase for class names
- Keep lines under 100 characters where possible
- Add a docstring or comment at the top of every file explaining its purpose
- Use f-strings for string formatting (Python 3.6+)