def print_vowels(string):
    vowels = "aeiouAEIOU"
    vowel_list = [char for char in string if char in vowels]
    return vowel_list

# Example usage:
text = input("Enter a string: ")
vowels = print_vowels(text)
print(f"The vowels in the string are: {vowels}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: