Getting TypeError: 'builtin_function_or_method' object is not subscriptable' while coding small program
<p>Hi i have only been coding for a short time and am trying to code a program that counts the vowels in a sentence and then returns that number to the user at the moment i am getting the error:</p>

<p>TypeError: 'builtin_function_or_method' object is not subscriptable'</p>

<pre><code>vowel = "aeiou"
vcount = 0
index = 0

sen = input("Enter sentence (If you enter nothing the program will terminate)\n")
senLen = len(sen)

while senLen &gt; 0:
    sen = sen.lower
    while index &lt; senLen:
        if "test"[index] in vowel:
            vcount = vcount + 1
            index = index + 1
    print("You latest sentance was", sen, "\nIt was", senLen, "Characters long\n", "And had", vcount, "Vowels")
    input("Enter sentence (If you enter nothing the program will terminate)\n")
</code></pre>

<p>Thanks in advance</p>