This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error with Hello, World in 3.3.1
Type: behavior Stage:
Components: Windows Versions: Python 3.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Ramchandra Apte, walkah21
Priority: normal Keywords:

Created on 2013-04-17 13:57 by walkah21, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg187161 - (view) Author: David Walker (walkah21) Date: 2013-04-17 13:57
I'm brand new to Python (and programming in general) and I'm reading "Python for Dummies" while trying to learn this.  I downloaded 3.3.1 and when I entered the command

>>> print "Hello, World!"

it would give the following error:

SyntaxError: invalid syntax
  File "<stdin>", line 1
     print "Hello, World!"

Yet when I do the same thing in v 2.7.4 it works fine.  Is there something I'm doing wrong?  Thanks in advance
msg187163 - (view) Author: Ramchandra Apte (Ramchandra Apte) * Date: 2013-04-17 13:59
Python 3 and Python 2 have different syntax (same code won't work with both versions).
You would have to run print("Hello, World")
Please close this bug as invalid.
History
Date User Action Args
2022-04-11 14:57:44adminsetgithub: 61975
2013-04-17 14:00:59walkah21setstatus: open -> closed
resolution: not a bug
2013-04-17 13:59:11Ramchandra Aptesettype: compile error -> behavior

messages: + msg187163
nosy: + Ramchandra Apte
2013-04-17 13:57:05walkah21create