27_11_commit

This commit is contained in:
BohdanBakhlul 2019-11-27 17:13:49 +01:00
parent 591d0f1ad9
commit 348d53bbe9

View File

@ -2,7 +2,7 @@
import sys, re
for line in sys.stdin:
if (re.search(r'^\D*[AEIOUaeiou]\D*$', line)):
if (re.search(r'(^[aeiouy][^aeiouy]*$|^[^aeiouy]+[aeiouy]$|^[^aeiouy]+[aeiouy][^aeiouy]+$)', line)):
print('true')
else:
print('false')