Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 74 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Python 2, 58 bytes

-30 bytes by realizing it can be as simple as [Arnauld's JS answer]Arnauld's JS answer.

lambda s:re.search('[^aeiouy]([^aeiouy]|$)',s)<1
import re

Try it online!

Python 2, 58 bytes

-30 bytes by realizing it can be as simple as [Arnauld's JS answer].

lambda s:re.search('[^aeiouy]([^aeiouy]|$)',s)<1
import re

Try it online!

Python 2, 58 bytes

-30 bytes by realizing it can be as simple as Arnauld's JS answer.

lambda s:re.search('[^aeiouy]([^aeiouy]|$)',s)<1
import re

Try it online!

Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Python 2, 58 bytes

-30 bytes by realizing it can be as simple as [Arnauld's JS answer].

lambda s:re.search('[^aeiouy]([^aeiouy]|$)',s)<1
import re

Try it online!

AltStyle によって変換されたページ (->オリジナル) /