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