python strip newline from string

line = line.strip('\n')
line = line.strip('\t')

Here is what the above code is Doing:
1. It’s reading the first line of the file and storing it in the variable line.
2. It’s stripping the newline character from the end of the line.
3. It’s stripping the tab character from the end of the line.