cannot remove /n/n from a string code example Example: remove n string a_string = a_string.rstrip("\n")