DEV Community

Discussion on: 10 Awesome Pythonic One-Liners Explained

 
paddy3118 profile image
Paddy3118

That's a big if. rstrip('\n') or simple rstrip() i find easier to read and less error prone.