Re: Stripping in Python

2015-01-15 Thread ronnyma
On Thursday, January 15, 2015 at 11:35:11 AM UTC+1, Abdul Abdul wrote: > Hello, > > I have a program where I read a line input from the keyboard. > > If I remove this portion of code after reading the line, I get an error: > > line = line.rstrip() > > Why is that? Should stripping be always be

Re: Stripping in Python

2015-01-15 Thread Peter Otten
Abdul Abdul wrote: > I have a program where I read a line input from the keyboard. > > If I remove this portion of code after reading the line, I get an error: > > line = line.rstrip() > > Why is that? Should stripping be always be used after reading an input in > Python? What version of Pytho

Stripping in Python

2015-01-15 Thread Abdul Abdul
Hello, I have a program where I read a line input from the keyboard. If I remove this portion of code after reading the line, I get an error: line = line.rstrip() Why is that? Should stripping be always be used after reading an input in Python? Thanks. -- https://mail.python.org/mailman/listi