Skip to content

Instantly share code, notes, and snippets.

@prokopevivan
Created February 27, 2023 18:13
Show Gist options
  • Save prokopevivan/92bd165f8f53add5331837dcab1f0fa3 to your computer and use it in GitHub Desktop.
Save prokopevivan/92bd165f8f53add5331837dcab1f0fa3 to your computer and use it in GitHub Desktop.
text = input().split()
volwes = ['а', 'о', 'э', 'е', 'и', 'ы', 'у', 'ё', 'ю', 'я']
count = list()
for i in text:
c = 0
for j in i:
if j in volwes:
c += 1
count.append(c)
if len(set(count)) == 1:
print('Парам пам-пам')
else:
print('Пам парам')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment