How can I make a boolean expression when I need to check if one string is simply another string repeated multiple times.
For example:
is_periodiek('ABABABABABABABABABABABABABABABABABAB', 'AB')
>>> True
is_periodiek('ABABABABABABABABABABABABABABABABABAB', 'ABA')
>>> False
is_periodiek('ABABABABABABABABABABABABABABABABABAB', 'ABAB')
>>> True
I think I need to make a 'for' loop but it never found the solution.