Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created October 21, 2019 13:18
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 NMZivkovic/f49f09f9f04afd0a811729f2175545ba to your computer and use it in GitHub Desktop.
Save NMZivkovic/f49f09f9f04afd0a811729f2175545ba to your computer and use it in GitHub Desktop.
from typing import Literal
def nBackAtYa(n: Literal[11, 33, 66]):
if n < 111:
return n
else:
raise ValueError('n must less than 111')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment