How to skip the "n" in the output while using the readlines() method? – Ubuntu
I want to read a notepad file by using the readlines() method. f = open('/home/user/Desktop/my_file', 'r') print(f.readlines()) The output is: ['Hello!n', 'Welcome to Barbara restaurant. n', 'Here is the menu. n'] As you see the newlines will be mentioned in…