in python Input Format A single line of input consisting of the string S Output Format A single line of output consisting of the modified string. code example
Example: You are given a string S. Suppose a character ‘c’ occurs consecutively X times in the string. Replace these consecutive occurrences of the character ‘c’ with (X, c) in string
(1, 1) (3, 2) (1, 3) (2, 1)