Re: [Tutor] Problem with print

2010-12-20 Thread Hugo Arts
On Tue, Dec 21, 2010 at 6:08 AM, David Hutto wrote: >> >> Note that print can actually only be used as a statement in python 2. >> It just so happens that you can include parentheses in the statement. >> Though that makes it look similar to a function call, it certainly is >> not. You'll see that

Re: [Tutor] Problem with print

2010-12-20 Thread David Hutto
> > Note that print can actually only be used as a statement in python 2. > It just so happens that you can include parentheses in the statement. > Though that makes it look similar to a function call, it certainly is > not. You'll see that when you try to supply multiple arguments to the > "functi

Re: [Tutor] Problem with print

2010-12-20 Thread Hugo Arts
On Tue, Dec 21, 2010 at 5:35 AM, David Hutto wrote: > > I was used to the tutorials from 3 showing the correct print(), and > seeing the errors for print 'whatever', when i accidentally used them > in 3, that I used them exclusively after seeing the 3 tutorials, and > that it could be used as both

Re: [Tutor] Problem with print

2010-12-20 Thread David Hutto
On Mon, Dec 20, 2010 at 5:15 AM, Steven D'Aprano wrote: > David Hutto wrote: >> >> On Sun, Dec 19, 2010 at 4:33 PM, Hugo Arts wrote: >>> >>> On Sun, Dec 19, 2010 at 10:11 PM, Sander Sweers >>> wrote: On 19 December 2010 21:54, jtl999 wrote: > >  File "GettingStarted.py", line

Re: [Tutor] Problem with print

2010-12-20 Thread Steven D'Aprano
David Hutto wrote: On Sun, Dec 19, 2010 at 4:33 PM, Hugo Arts wrote: On Sun, Dec 19, 2010 at 10:11 PM, Sander Sweers wrote: On 19 December 2010 21:54, jtl999 wrote: File "GettingStarted.py", line 91 print ("Lesson Two") ^ SyntaxError: invalid syntax [...] Apparently so, but I

Re: [Tutor] Problem with print

2010-12-19 Thread David Hutto
On Sun, Dec 19, 2010 at 4:33 PM, Hugo Arts wrote: > On Sun, Dec 19, 2010 at 10:11 PM, Sander Sweers > wrote: >> On 19 December 2010 21:54, jtl999 wrote: >>>  File "GettingStarted.py", line 91 >>>    print ("Lesson Two") >>>        ^ >>> SyntaxError: invalid syntax >>> >>> Python 2.6.5 >> >> You

Re: [Tutor] Problem with print

2010-12-19 Thread Hugo Arts
On Sun, Dec 19, 2010 at 10:11 PM, Sander Sweers wrote: > On 19 December 2010 21:54, jtl999 wrote: >>  File "GettingStarted.py", line 91 >>    print ("Lesson Two") >>        ^ >> SyntaxError: invalid syntax >> >> Python 2.6.5 > > You are using a howto for python version 3.X but you are using pytho

Re: [Tutor] Problem with print

2010-12-19 Thread Sander Sweers
On 19 December 2010 21:54, jtl999 wrote: >  File "GettingStarted.py", line 91 >    print ("Lesson Two") >        ^ > SyntaxError: invalid syntax > > Python 2.6.5 You are using a howto for python version 3.X but you are using python 2.X. In python 3 the print statement was changed to a function.

Re: [Tutor] Problem with print

2010-12-19 Thread David Hutto
On Sun, Dec 19, 2010 at 4:05 PM, Alex Hall wrote: > Sorry to top-post (gMail mobile). > This looks like you missed a quote, colon, or something on a line > elsewhere in the file (likely above it). Find that and this should be > fixed. > > On 12/19/10, jtl999 wrote: >>  File "GettingStarted.py", l

Re: [Tutor] Problem with print

2010-12-19 Thread Alex Hall
Sorry to top-post (gMail mobile). This looks like you missed a quote, colon, or something on a line elsewhere in the file (likely above it). Find that and this should be fixed. On 12/19/10, jtl999 wrote: > File "GettingStarted.py", line 91 > print ("Lesson Two") > ^ > SyntaxError: in

[Tutor] Problem with print

2010-12-19 Thread jtl999
File "GettingStarted.py", line 91 print ("Lesson Two") ^ SyntaxError: invalid syntax Python 2.6.5 signature.asc Description: This is a digitally signed message part ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscript