minus-squarelime!@feddit.nulinkfedilinkEnglisharrow-up6·2 months agoi was gonna suggest the classic re.match(r"^(..)\1*$", "0" * abs(i)) is not None
i was gonna suggest the classic