A simple Python project demonstrating modular code organization with multiple utility modules.
python-project/
├── main.py              # Main entry point
├── calculator.py        # Basic arithmetic operations
├── string_utils.py      # String manipulation utilities
├── data_processor.py    # Data processing functions
├── pyproject.toml       # Project configuration
└── README.md           # This file
Provides basic arithmetic operations:
- add(a, b)- Addition
- subtract(a, b)- Subtraction
- multiply(a, b)- Multiplication
- divide(a, b)- Division
- power(base, exponent)- Exponentiation
String manipulation utilities:
- reverse_string(text)- Reverse a string
- count_words(text)- Count words in text
- capitalize_words(text)- Capitalize each word
- is_palindrome(text)- Check if text is a palindrome
- remove_vowels(text)- Remove vowels from text
Data processing functions:
- find_average(numbers)- Calculate average
- find_max_min(numbers)- Find max and min values
- filter_even_numbers(numbers)- Filter even numbers
- sort_by_length(strings)- Sort strings by length
- group_by_first_letter(words)- Group words by first letter
Run the main demo:
python main.py- Python >= 3.10