Created
October 21, 2019 13:18
-
-
Save NMZivkovic/f49f09f9f04afd0a811729f2175545ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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