ahmedibrahimgh / recursive-word-cleaning Goto Github PK
View Code? Open in Web Editor NEWThe "Recursive Word Cleaning" is a Python program that uses recursion to remove repetitive patterns from a given word. The Clean_Word function checks if the word length is 1 or if the first letter is equal to the second letter. It recursively calls itself to remove repetitive letters until the base case is reached.