2 תשובות
אני די בטוח שעניתי כבר על שאלה כזאת
כן, עניתי בעבר למישהו על זה.

x = text.count('e')
y = text.count('a')
z = text.count('o')
f = text.count('u')
g = text.count('i')
spaces = text.count(' ')
diacritics_count = x+y+z+f+g

print("the amount of discritics is:" , diacritics_count)
print("the amount of spaces is:" , spaces)

if diacritics_count == 1 and spaces > 0:
print("yes")
else:
print("no")

בבקשה :) זה הקוד ששלחתי גם לו