Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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