Re: Question About Running Python code

2014-10-16 Thread Andrew Jaffe
On 15/10/2014 23:50, ryguy7272 wrote: The error that I get is this. 'invalid syntax' The second single quote in this line is highlighted pink. print 'Downloading data from Yahoo for %s sector' % sector This is a script written for Python 2.*, but you say you are using Python 3.4. In Python 3,

Re: Question About Running Python code

2014-10-15 Thread Ian Kelly
On Oct 15, 2014 7:04 PM, "Cameron Simpson" wrote: > > On 15Oct2014 16:09, Dan Stromberg wrote: >> >> On Wed, Oct 15, 2014 at 3:50 PM, ryguy7272 wrote: >>> >>> #1) That's very bizarre to mix single quotes and double quotes in a single language. Does Python actually mix single quotes and do

Re: Question About Running Python code

2014-10-15 Thread Cameron Simpson
On 15Oct2014 16:09, Dan Stromberg wrote: On Wed, Oct 15, 2014 at 3:50 PM, ryguy7272 wrote: #1) That's very bizarre to mix single quotes and double quotes in a single language. Does Python actually mix single quotes and double quotes? I'm not sure what you mean by "mix". C uses single

Re: Question About Running Python code

2014-10-15 Thread Dan Stromberg
On Wed, Oct 15, 2014 at 3:50 PM, ryguy7272 wrote: > I'm trying to run this script (using IDLE 3.4) > I would be most appreciative if someone could respond to a few questions. > > The error that I get is this. > 'invalid syntax' You may get better help if you give the context of this message. >