Skip to content

Instantly share code, notes, and snippets.

@mpfdev
mpfdev / double_eights.py
Last active August 15, 2022 22:41
def double_eights(n)
def double_eights(n):
"""Return true if n has two eights in a row.
>>> double_eights(8)
False
>>> double_eights(88)
True
>>> double_eights(2882)
True
>>> double_eights(880088)
True