python delete every x char in string code example Example: how to delete specific char in string python a_string = a_string.replace("d", "")