'Use Python need to remove the هههههههه that exceed 3 ه

How to remove the extra 'ه' in the word? Maximum 3 'ه' in the word

شنو هل الغابة اوي عايشين بيها كلنا نختلف ههههههههههههه اي اي الايلينز تجين



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source