Skip to content

Instantly share code, notes, and snippets.

@ekohilas
Created December 22, 2017 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekohilas/5e91b8c82b4d94222ec640fba60d7d41 to your computer and use it in GitHub Desktop.
Save ekohilas/5e91b8c82b4d94222ec640fba60d7d41 to your computer and use it in GitHub Desktop.
obfuscated code golf
word={0:"zero",1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"}[int(input()[-1])];print(any(True if ord(i)==101 else False for i in word if i==word[-2]or i in word[-1:]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment