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
>
> 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
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
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
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
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
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
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.
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
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
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
11 matches
Mail list logo