Re: [Tutor] Trouble Removing Whitespace

2016-11-07 Thread Peter Otten
Jason Durnen wrote: > Hello, > I am totally new to programming but thought I would give it a shot. I > recently purchased the Python Crash Course book and have run in to a > problem in the second chapter. The section that talks about removing > whitespace in code to be more precise. > > This is t

Re: [Tutor] Trouble Removing Whitespace

2016-11-07 Thread Alan Gauld via Tutor
On 07/11/16 03:25, Jason Durnen wrote: > This is the code that I type in, but the result will not trim the extra > space. The tricky thing about white space is that you can't se it, so how do you know it is there or not? One way is to surround it with something you can see: data = 'a string'

[Tutor] Trouble Removing Whitespace

2016-11-07 Thread Jason Durnen
Hello, I am totally new to programming but thought I would give it a shot. I recently purchased the Python Crash Course book and have run in to a problem in the second chapter. The section that talks about removing whitespace in code to be more precise. This is the code that I type in, but the res