#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1266
Task: ,

Write a Python function that converts a given paragraph of text into a list of sentences, where each sentence is represented as a tuple containing the number of vowels and the number of consonants 
Generated: 2026-02-13T02:22:11.224602
"""

import re

def count_vowels_consonants(text):
    sentences = re.split(r'(?<=[.])', text)
    result = []
    vowels = set("aeiouAEIOU")
    
    for sentence in sentences:
        if sentence.strip() == "":
            continue
        vowel_count = 0
        consonant_count = 0
        for char in sentence:
            if char.isalpha():
                if char in vowels:
                    vowel_count += 1
                else:
                    consonant_count += 1
        result.append((vowel_count, consonant_count))
    return result

if __name__ == '__main__':
    paragraph = "Hello world! This is a test paragraph. It contains several sentences."
    result = count_vowels_consonants(paragraph)
    print(result)