The answer for your Python programming exercise is given below.


#!/usr/bin/env python3
def CountMaxRepeat(str):
	count = 0
	mount = 0
	for outstr in str:
		for instr in str:
			if outstr == instr:
				count += 1
				if count > mount:
					mount = count
		count = 0
	return mount
if __name__ == '__main__':
    s = CountMaxRepeat("Heeeeello")
    print("Max repeat char is:",s)