Re: [Tutor] Q regarding external program calling

2016-11-07 Thread eryk sun
On Sun, Nov 6, 2016 at 9:09 AM, Alan Gauld via Tutor wrote: > On 06/11/16 01:44, Clayton Kirkwood wrote: >> Looked all over, but haven't found the answer. If I have a (windows) program >> which I wish to start, even shell scripts, and possibly capture the output >> from, how do I do that? > > Othe

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