# Python program to remove single occurrences of a character from a string text= 'ItsMyCoode' print(text.replace('o','',1))