[Tutor] print problem python

Vern Ceder vceder at canterburyschool.org
Fri Mar 6 19:39:49 CET 2009


In Python 3, you need to put ( ) around what you want to print, so it
would be:

>>> print("hello world")

Cheers,
Vern

mustafa akkoc wrote:
> i start learning pyton language i want to print some thing but when i 
> type :  print "hello world"  but it give an error like this 
>  SyntaxError: invalid syntax (<pyshell#18>, line 1)
> 
> i am using python shell version 3.0.1
>  
> -- 
> Mustafa Akkoc
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

-- 
This time for sure!
    -Bullwinkle J. Moose
-----------------------------
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137



More information about the Tutor mailing list