[Tutor] converting xls to csv

Alan Gauld alan.gauld at btinternet.com
Sun May 31 09:57:06 CEST 2009


"Nick Burgess" <burgess.nick at gmail.com> wrote 

> I am trying to make this code work.  I don't have any experience with
> defining things and this is my second program.  The error returmed is
> "SyntaxError: invalid syntax"

Please post the whole error message, much of the useful stufff - like 
the location of the problem! - is in the earlier lines.

However taking a wild guess - are you using Python v3?

> print "------ beginning to convert XLS to CSV ------"

If so print is now a function so you need to surround the string 
with ()

But  if you are not using v3, then please send the fuill error text.


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list