Davide
not re.match(r'^.?$|^(..+?)\1+$', '1'*n)
Send message via Telegram app
Don't have Telegram yet?
Open via web telegram
or
Get telegram app