Be part dojicreates.com Development - Submit Your Python Tutorial

This page is currently under development.

Help Us Grow the Python Section!


Yes po, I know this is a very ambitious project and involves a lot of work. Alam ko rin po na hindi ko kaya gawin ito mag-isa. Kaya naisip ko, mas magiging masaya at meaningful ito kung magiging bahagi kayo ng development na ito by submitting your own content in PDF format.

What's in it for you? Credit!
Yes po, I'm planning to include your name as credit in the title itself, just like what you'll see in the image below.

credits-image

And hindi lang po basta simple credits lang, clickable link po ito!
You can include a clean link like your social media account if you want followers, or leave it blank if you prefer.

Your credits will remain as long as walang ibang submission na mas mahusay ang explanation. So just because a topic already has content doesn't mean you can't submit anymore. You're always welcome to try and submit your own version. With that said, we're now accepting your best works, send them in now!


Submission Guidelines

1. Content Requirements

  • Write tutorials in Filipino (Tagalog)
  • You can choose a topic from the scroll spy on the left side
  • Focus on one Python topic per submission
  • Include practical code examples with proper syntax
  • Provide step-by-step explanations
  • Show expected outputs


Code Example Format

import math

# Compute the area of a circle
def compute_area(radius):
    """Calculate the area of a circle with the given radius"""
    return math.pi * radius ** 2
    
# Get input from user
radius_input = input("Ilagay ang radius: ")
radius = float(radius_input)
        
# Calculate and display the result
area = compute_area(radius)
print(f"Ang area ng circle na may radius {radius} ay {area:.2f} square units.")

2. Recommended Python Topics

  • Recommended: Blank topics like this have more higher chances of getting selected.
  • Python Data Structures
  • Python List Comprehensions
  • OOP in Python
  • Exception Handling
  • File I/O
  • Web Scraping with Python


How to Submit

  1. Create a PDF of your Python tutorial following our guidelines
  2. Join our Facebook group
  3. Upload/Post your PDF with topic name and brief description on our FB Group
  4. Wait for feedback from our team


Example

Check our Python | Installing Python as a model for your submission.

Python Tutorial Submission Guidelines

Required Format for Python Educational Content

Maintained by: dojicreates

Thank you for your interest in contributing educational Python content to our platform! To maintain consistency and quality across all tutorials, please follow these detailed guidelines when preparing your submission.

Basic Page Structure

1. Tutorial Title

Always use this format: "Python Programming Tutorials: [Your Topic]"

Example: "Python Programming Tutorials: List Comprehensions"

2. Main Topic Header

Format your main heading as: Python [Your Topic]

Example: Python List Comprehensions

3. Introduction Paragraph

Provide a clear explanation of the concept with key terms in bold.

Example: "Ang list comprehension sa Python ay isang concise at elegant na paraan para mag-create ng bagong list mula sa isang existing sequence. Ito ay mas maikli at kadalasang mas madaling basahin kaysa sa traditional na for loops..."

Required Content Sections

1. Importance of the Topic

Section Header: Bakit Mahalaga ang [Your Topic]?

Content Format: List benefits with checkmarks ?

Example:

  • ? Mas maikli at mas madaling basahin ang code.
  • ? Mas mabilis na execution dahil ito ay naka-optimize sa Python.
  • ? Nakakatulong sa functional programming style.

2. How the Concept Works

Section Header: Paano Gumagana ang [Your Topic]?

Content Format: Step-by-step explanation with ordered or unordered lists

Example:

Sa Python, may tatlong bahagi ang list comprehension:

  1. ? Output expression - ito ang value na ilalagay sa bawat element ng list.
  2. ? Input sequence - ito ang collection na pinagkukunan ng mga element.
  3. ? Predicate or condition (optional) - ito ang filter kung anong mga element ang kasama.

3. Code Example

Section Header: Halimbawa ng [Your Topic]

Content Format: Complete, runnable Python code in a code block with Tagalog comments

Example:

# Simpleng list comprehension para sa squared numbers
squares = [x**2 for x in range(10)]
print(f"Squared numbers: {squares}")

# List comprehension na may condition
even_squares = [x**2 for x in range(10) if x % 2 == 0]
print(f"Even squared numbers: {even_squares}")

# Nested list comprehension
matrix = [[j for j in range(3)] for i in range(3)]
print(f"Matrix:\n{matrix[0]}\n{matrix[1]}\n{matrix[2]}")

4. Code Explanation

Section Header: Paliwanag ng Code

Content Format: Bullet points explaining each important part of the code

Example:

  • `[x**2 for x in range(10)]` ? Gumagawa ng list ng squares ng mga number mula 0 hanggang 9.
  • `[x**2 for x in range(10) if x % 2 == 0]` ? Gumagawa ng list ng squares ng even numbers lang.
  • `[[j for j in range(3)] for i in range(3)]` ? Gumagawa ng 3�3 matrix na naglalaman ng mga value mula 0 hanggang 2.

5. Practical Application (Optional)

Section Header: [Variation] ng [Your Topic]

Content Format: Additional examples with short code snippets

Example:

List comprehension ay maaari ding gamitin sa string:

# Converting string to uppercase using list comprehension
names = ["juan", "pedro", "maria"]
upper_names = [name.upper() for name in names]
print(f"Uppercase names: {upper_names}")

# Using list comprehension with dictionaries
dict_comp = {x: x**2 for x in range(5)}
print(f"Dictionary comprehension: {dict_comp}")

6. Expected Output

Section Header: Expected Output:

Content Format: Plain text showing expected console output

Example:

Squared numbers: [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
Even squared numbers: [0, 4, 16, 36, 64]
Matrix:
[0, 1, 2]
[0, 1, 2]
[0, 1, 2]
Uppercase names: ['JUAN', 'PEDRO', 'MARIA']
Dictionary comprehension: {0: 0, 1: 1, 2: 4, 3: 9, 4: 16}

7. Success Message

Content Format: Encouraging message with checkmark and celebration emoji

Example:

? Kapag lumabas ang output na nakikita sa itaas, matagumpay mong nai-run ang iyong Python list comprehension examples! ??

Formatting Requirements

1. Text Formatting

  • Use bold text for all important concepts and terms
  • Use backticks for all code elements, function names, variables, and technical terms
  • Place all section headers in bold
  • Use consistent spacing between sections (one blank line minimum)

2. Code Blocks

  • Every code example must be properly indented (4 spaces)
  • All code must be runnable and error-free
  • Add helpful comments in Tagalog to explain complex parts
  • Follow PEP 8 Python style guidelines for all code examples
  • Follow Python naming conventions (snake_case for functions and variables, PascalCase for classes)

3. Visual Elements

  • Use tables for comparing related concepts (e.g., different data types)
  • Use ordered lists for sequential steps or processes
  • Use unordered lists for non-sequential items or options
  • Use checkmarks (?) to highlight positive points or key features

4. Language Guidelines

  • Write primary content in Tagalog for better local understanding
  • Keep all technical terms in English and format them with backticks
  • Use a friendly, encouraging tone throughout the tutorial
  • Address the reader directly with second-person perspective (e.g., "mong", "mo")
  • Explain complex concepts with simple, clear language

Code Example Guidelines

Example of Well-Formatted Python Code:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Example module demonstrating Python best practices and formatting
"""

import math
from typing import List, Dict, Union, Optional


class ShapeCalculator:
    """Class for calculating properties of different shapes"""
    
    def __init__(self, name: str = "DefaultCalculator"):
        """Initialize the calculator with a name
        
        Args:
            name: The name of this calculator instance
        """
        self.name = name
        self.calculations_count = 0
    
    def calculate_rectangle_area(self, length: float, width: float) -> float:
        """Calculate the area of a rectangle
        
        Args:
            length: The length of the rectangle
            width: The width of the rectangle
            
        Returns:
            The area of the rectangle
        """
        # Increment the counter for each calculation
        self.calculations_count += 1
        
        # Return the calculated area
        return length * width
    
    def calculate_circle_area(self, radius: float) -> float:
        """Calculate the area of a circle
        
        Args:
            radius: The radius of the circle
            
            Returns:
            The total number of calculations performed
        """
        return self.calculations_count


def main() -> None:
    """Main function to demonstrate the ShapeCalculator class"""
    # Create a calculator instance
    calculator = ShapeCalculator("MyCalculator")
    
    # Calculate some areas
    rectangle_area = calculator.calculate_rectangle_area(5.0, 4.0)
    circle_area = calculator.calculate_circle_area(3.0)
    
    # Print the results
    print(f"Rectangle Area: {rectangle_area}")
    print(f"Circle Area: {circle_area:.2f}")
    print(f"Total calculations: {calculator.get_calculations_count()}")


if __name__ == "__main__":
    main()

Important Python Code Formatting Rules:

  • Include proper shebang and encoding declarations when appropriate
  • Add module docstrings and function/class docstrings
  • Use type hints for function parameters and return values
  • Include meaningful white space for readability
  • Add descriptive Tagalog comments for key operations
  • Use proper line breaks and indentation
  • Break long lines for better readability (79-88 characters maximum according to PEP 8)
  • Maintain consistent naming conventions throughout code samples
  • Include a `main()` function and `if __name__ == "__main__"` block for runnable examples

Python-Specific Guidelines

1. Module Structure

  • Always include appropriate imports at the top of your Python files
  • Group imports in the standard order: standard library, third-party packages, local imports
  • Organize related functions and classes logically
  • Use proper module-level docstrings

2. Python Versions

  • Specify the Python version your code is written for (e.g., Python 3.6+, Python 3.8+)
  • When using newer Python features, mention the minimum required version
  • Avoid deprecated features and methods in your examples
  • Use modern Python patterns and structures (f-strings, type hints, etc.)

3. Common Python Library Examples

  • If demonstrating libraries (Flask, Django, etc.), provide basic configuration files
  • For web framework examples, include necessary route handling and templates
  • For database examples, use SQLite by default for simplicity
  • For GUI examples, use Tkinter or another cross-platform library

How to Submit Your Tutorial

  1. Prepare your content following all format guidelines above
  2. Test all code examples to ensure they run correctly
  3. Format in HTML using the same structure as our existing tutorials
  4. Submit via email to doji.adds@gmail.com with subject line "Python Tutorial Submission: [Your Topic]"
  5. Or Submit via posting your version on our Facebook group: https://www.facebook.com/groups/cspinas

All submissions will be reviewed for technical accuracy, quality of explanation, and adherence to these formatting guidelines before publication. We may request revisions to ensure consistency with our platform standards.

By submitting content, you agree to allow dojicreates to publish and modify your work as needed while maintaining attribution to you as the original author.

Ads