So here is a code i have written to find palindromes within a word (To check if there are palindromes within a word including the word itself) Condition: spaces inbetween ch
Use a nested loop:
for x in range(len(body)): for y in range(len(body)): ...