Print Function
Tarek Ziadé
tarek at ziade.org
Fri Sep 21 16:29:55 EDT 2012
On 9/21/12 10:20 PM, gengyangcai at gmail.com wrote:
> Hello ,
>
>
> I am currently using Python 3.2.3 . WHen I use the print function by typing print "Game Over" , it mentions " SyntaxError : invalid syntax ". Any ideas on what the problem is and how to resolve it ? Thanks a lot .
print was a statement in python 2.x, it is now a function so you need
parenthesis:
>>> print("Game Over")
Game Over
>
>
> GengYang
More information about the Python-list
mailing list