5 תשובות
def auiou_with_count(sentence):
total = 0
check = ["a","e","i","o","u"]

for i in check:
total += sentence.count(i)
return total

זו דרך 1
def auiou(sentence):
total = 0
check = ["a","e","i","o","u"]

for i in sentence:
if i in check:
total += 1
return total

זו דרך 2
שואל השאלה:
לא עובד
אנונימית
דרך 1
דרך 2