I'm trying to create a program in a queue class here is my code:
def count(self): #im having a problem with this def count
vowels=0
for i in self:
if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'):
vowels=vowels+1
print(vowels)
I'm having a problem with counting the vowels the user entered. It says "line 44, in q.count()" and "line 16, in count for i in self: TypeError: 'queue' object is not iterable"