Python basic program problem

Andrew Berg bahamutzero8825 at gmail.com
Mon Jun 27 03:24:20 EDT 2011


On 2011.06.27 02:05 AM, Amaninder Singh wrote:
> Hi,
> I am fairly new to python, I am trying to write simple code and It is
> giving me syntax error. I am reading a book and following the
> directions as it says in the book but I am not sure why it is not
> working.
Looks like the book you're reading is outdated and refers to Python 2.
In Python 3, print is a function:
print('Hello there')



More information about the Python-list mailing list