python eleminate \n from string parse code example
Example 1: python strip newline from string
a_string = a_string.rstrip("\n")
Example 2: python remove \n form list
converted_list = []
a_string = a_string.rstrip("\n")
converted_list = []