numdiffvowels.py

Download numdiffvowels.py file


## numdiffvowels.py (template file)

## next two lines added to make input compatible with Python 2  
try: input = raw_input
except: pass

print("This code should compute the number of different vowels in a string.")


## The computation requires 1 input:
input_string   =  input( "Enter a string (e.g. your name): " ) 

## Delete the following line and add your own code here
## to compute the answer.
different_vowels = "NOT ATTEMPTED"


print( "The number of different vowels in the string is:", different_vowels )

# make sure that the answer is the last thing you print!