Link to home
Start Free TrialLog in
Avatar of Zberteoc
ZberteocFlag for Canada

asked on

Print doesn't work in Python 3.0 under windows

Hi all

I am starting with python these days and I got into first problem. Following a tutorial when i type in IDE

print "a"

i get the error

SyntaxError: invalid syntax (<pyshell#9>, line 1)

on the linux box however works without problems.
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zberteoc

ASKER

Thanks, your answer is correct!

Before awarding you the points maybe you can help me with pointing in the right direction for a quick and good Python tutorial, examples, etc as I want to use it for both Windows and Linux environment. I am a DBA with a company that uses both OS as we have MS-SQL and MySQL databases with MySQL under Linux servers.

I am thinking to start using Python because it works in both environments. I am interested in particularly working with database connections.

Thanks!
I'm not a Python expert by any means, but I got started with the documentation listed here:
http://www.python.org/doc

and this O'Reilly book:
http://www.oreilly.com/catalog/9780596513986

From what you describe, it sounds like this book would also be valuable:
http://www.oreilly.com/catalog/9780596516147
Thanks for your help!