Repeated Substring Pattern
class Solution:
def repeatedSubstringPattern(self, s: str) -> bool:
flag = False
for ix in range(1, 1 + len(s) // 2, 1):
if len(s) % ix == 0:
flag = flag or s[:ix] * (len(s) // ix) == s
return flag