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
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
total = 0
check = ["a","e","i","o","u"]
for i in sentence:
if i in check:
total += 1
return total
זו דרך 2
שואל השאלה:
לא עובד
לא עובד
אנונימית
דרך 1
קישורים מצורפים:
דרך 2
קישורים מצורפים:
באותו הנושא: