#!/usr/bin/env python3
"""
This is a docstring comment at the beginning of the file.
It's a common Python convention for module documentation.
"""

# This is a single-line hash comment
import os
import sys

class DataProcessor:
    """
    A class for processing data with various methods.

    Attributes:
        name (str): The name of the processor
        version (float): The version number
    """

    def __init__(self, name="Default", version=1.0):
        # Initialize with default values
        self.name = name
        self.version = version

    def process(self, data):
        """
        Process the input data and return results.

        Args:
            data (list): Input data to process

        Returns:
            list: Processed data
        """
        # Single-line comment in method
        result = []

        for item in data:
            # Process each item
            processed = item * 2
            result.append(processed)

        return result

def calculate_sum(a, b):
    # This function calculates the sum
    """
    Multi-line docstring for a simple function.
    Returns the sum of two numbers.
    """
    return a + b

# Another inline comment
def main():
    """Main function to demonstrate the class."""
    # Create processor instance
    processor = DataProcessor("MyProcessor", 2.0)

    # Sample data
    data = [1, 2, 3, 4, 5]

    # Process data
    result = processor.process(data)

    # Print result
    print(f"Processed data: {result}")

    # Calculate sum
    total = calculate_sum(10, 20)
    print(f"Sum: {total}")

# Triple-quoted multi-line string (not a docstring, but acts as comment)
"""
This is a multi-line string that's not assigned to a variable.
In Python, it serves as a comment-like construct.
It should be preserved or removed depending on the implementation.
"""

if __name__ == "__main__":
    # Entry point
    main()

# End of file with comment
