Programming Examples
Python function that takes a string as parameter and returns a string with every successive repetitive character replaced
Write a Python function that takes a string as parameter and returns a string with every successive repetitive character replaced by & e.g. Parameter may become Par&met&r.
Output/ Explanation:
Enter any String :Parameter
Output is :Â Par&met&