online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
def count_vowels(s): # Define the vowels in a set for quick lookup vowels = {'a', 'e', 'i', 'o', 'u'} # Count vowels using set intersection with the input string num_vowels = sum(1 for char in s if char.lower() in vowels) return num_vowels def main(): # Input string for testing input_string = "Hello World, How are you?" # Count vowels in the input string num_vowels = count_vowels(input_string) # Print the result print(f"Number of vowels in the string: {num_vowels}") if __name__ == "__main__": main()

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue