Possible Duplicate:
determining a consonant and vowel count in a string
for x in range(length):
for y in range(x+1,length):
if "a"<=m[x]<="z" and "a"<=m[y]<="z":
i=0
count=0
for i in range(length):
if m[i]=="a" or m[i]=="e" or m[i]=="i" or m[i]=="o" or m[i]=="u" :
count=count+1
consonants=length-count
else:
consonants=length-count
else:
print("Input:" + m +" is incorrect! Please try again.")
b=True
how can i print else satement for just one time i dont want to keep it go under for loop