A newline is a hidden character that marks the end of a line. In Python, it is written as `\n`. When a line is read from a file, it includes the newline, which can be removed before storing the line’s contents. section 23.1
Listing 23.1. Remove the newline character
word = "bird\n" #1
print(word) #2
word = word.replace("\n", "") #3
print(word) #4
See how replacing `\n` with an empty string removes the newline from a string. section 23.1





