Value printing in Python : """
Created on Fri Sep  9 22:15:11 2016

@author: WINDOWS 10 Purniah
"""

    cnt = 0
    s = 'aghe'
    s_len = len(s)
    s_len = s_len - 1
    while s_len >= 0:
        if s[s_len] in ('aeiou'):
            cnt += 1
        s_len -= 1
        break;
    print ('numofVowels:'),cnt  


This does print the value of cnt. When debugging cnt has the correct value!