Okay so what I did was
def countvowels(st):
result=st.count("a")+st.count("A")+st.count("e")+st.count("E")+st.count("i")+st.count("I")+st.count("o")+st.count("O")+st.count("u")+st.count("U")
return result
This works(I'm aware indentation might be wrong in this post, but the way I have it indented in python, it works).
Is there a better way to do this? Using for loops?