python remove \n of string code example
Example 1: python removing \n from string
line = line.strip('\n')
line = line.strip('\t')
Example 2: get rid of n in string python
a_string = a_string.rstrip("\n")
line = line.strip('\n')
line = line.strip('\t')
a_string = a_string.rstrip("\n")