Skip to content

ai-liens/python-project

Repository files navigation

Python Project

A simple Python project demonstrating modular code organization with multiple utility modules.

Project Structure

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

Modules

calculator.py

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_utils.py

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_processor.py

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

Usage

Run the main demo:

python main.py

Requirements

  • Python >= 3.10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages