<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Write a Python code to find the number of vowels in a provided string.
string = "Hello, World!"<|im_end|>
<|im_start|>assistant
# Count the number of vowels in the string
num_vowels = 0
for char in string:
    if char in 'aeiouAEIOU':
        num_vowels += 1

print("Number of vowels:", num_vowels)<|im_end|>
