
    Design a function for an adaptive learning platform that rearranges the vowel sounds in a student's written response text to create pronunciation variation exercises, while keeping all consonants in their original positions. The function should only modify standard vowels (a, e, i, o, u) and preserve all other characters, including 'y', in their original positions.
    

    
def reverse_vowels(str1):
    """
    Design a function for an adaptive learning platform that rearranges the vowel sounds in a student's written response text to create pronunciation variation exercises, while keeping all consonants in their original positions. The function should only modify standard vowels (a, e, i, o, u) and preserve all other characters, including 'y', in their original positions.
    

    """
def reverse_vowels(str1):
    """
    Design a function for an adaptive learning platform that rearranges the vowel sounds in a student's written response text to create pronunciation variation exercises, while keeping all consonants in their original positions. The function should only modify standard vowels (a, e, i, o, u) and preserve all other characters, including 'y', in their original positions.
    

    """
    vowels = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            vowels += char
    result_string = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            result_string += vowels[-1]
            vowels = vowels[:-1]
        else:
            result_string += char
    return result_string