[Tutor] Trouble getting started

Ketut Mahaindra KMahaindra@beijing.sema.slb.com
Mon, 12 Aug 2002 09:48:36 +0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_KC7DsitczD5/kis0Ee2MjA)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hi,
I believe you should have

for i in range(10):
	print i

notice that it is an "i" and not a "1"
this is where the syntax error came up

hope it helps
best regards

ito

-----Original Message-----
From: Budman4106@aol.com [mailto:Budman4106@aol.com]
Sent: Saturday, August 10, 2002 10:20 AM
To: tutor@python.org
Subject: [Tutor] Trouble getting started


Here's a screen shot of whats going on. I'm just getting started and dont
understand what this syntax error means. Also when I try to run the "Hello
World" Script it says the python buffer has not been saved and I need to
know how to save the buffer. I know I'm being a pain but I want to learn
some sort of programming just for fun and Python seems to be a good place to
start...... any help would be appreciated
 

--Boundary_(ID_KC7DsitczD5/kis0Ee2MjA)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Tutor] Trouble getting started</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi,</FONT>
<BR><FONT SIZE=2>I believe you should have</FONT>
</P>

<P><FONT SIZE=2>for i in range(10):</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>print i</FONT>
</P>

<P><FONT SIZE=2>notice that it is an &quot;i&quot; and not a &quot;1&quot;</FONT>
<BR><FONT SIZE=2>this is where the syntax error came up</FONT>
</P>

<P><FONT SIZE=2>hope it helps</FONT>
<BR><FONT SIZE=2>best regards</FONT>
</P>

<P><FONT SIZE=2>ito</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Budman4106@aol.com [<A HREF="mailto:Budman4106@aol.com">mailto:Budman4106@aol.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Saturday, August 10, 2002 10:20 AM</FONT>
<BR><FONT SIZE=2>To: tutor@python.org</FONT>
<BR><FONT SIZE=2>Subject: [Tutor] Trouble getting started</FONT>
</P>
<BR>

<P><FONT SIZE=2>Here's a screen shot of whats going on. I'm just getting started and dont understand what this syntax error means. Also when I try to run the &quot;Hello World&quot; Script it says the python buffer has not been saved and I need to know how to save the buffer. I know I'm being a pain but I want to learn some sort of programming just for fun and Python seems to be a good place to start...... any help would be appreciated</FONT></P>

<P><FONT SIZE=2>&nbsp;</FONT>
</P>

</BODY>
</HTML>

--Boundary_(ID_KC7DsitczD5/kis0Ee2MjA)--