I am trying to write a function that returns true if the number of vowels in a word are equal to the consonants or false if otherwise, but I keep on getting an error that the word is not defined, I need help to debug my code
def word(n):
n=n.copy
w=list(n)
v=['a','e','i','o','u']
for item in w:
for item in v:
while w>x:
if w-x==0.5:
return 'True'
else:
return 'False'
end
end
end
word(deaf)