[Tutor] Enter? Tab?

Bill Mill bill.mill at gmail.com
Wed Nov 17 06:11:33 CET 2004


Harov,

That page isn't very clear. Alan, the author of that tutorial, reads
this list, so I'm sure he'll jump into this discussion, but I'll offer
my 2 cents.

The file listed under the "javascript" heading is the javascript
equivalent of this python program:

---Python code---

print "hello world"      #tutorial should mention this explicitly, but doesn't

--- end code ---

Further below that is the VBscript equivalent of the same python
program. They won't run in Python because they're not Python programs.

Peace
Bill Mill
bill.mill at gmail.com


On Tue, 16 Nov 2004 19:52:13 -0800 (PST), Harov Satmandirvich
<elrood_corrino_ii at yahoo.com> wrote:
> This is the link, and it's the page called "getting
> started".
> 
> http://www.freenetpages.co.uk/hp/alan.gauld/
> 
> 
> 
> 
> --- Bill Mill <bill.mill at gmail.com> wrote:
> 
> > Where is this a python example and in what tutorial?
> >
> > Peace
> > Bill Mill
> > bill.mill at gmail.com
> >
> >
> > On Tue, 16 Nov 2004 18:48:52 -0800 (PST), Harov
> > Satmandirvich
> > <elrood_corrino_ii at yahoo.com> wrote:
> > > I have been going through the Python tutorial and
> > > tried to reproduce one of its first examples:
> > >
> > > <html>
> > > <body>
> > >
> > > <script language="JavaScript">
> > >
> > > document.write('Hello World\n');
> > >
> > > </script>
> > >
> > > </body>
> > > </html>
> > >
> > > However, this didn't work.  The only way I could
> > get
> > > the prompt to display the above text like that was
> > to
> > > hit TAB over and over again until the cursor
> > advanced
> > > a line.  Hitting ENTER, of course, enters the line
> > as
> > > if it were a whole program and produces an error.
> > And
> > > even when I used TAB for the spacing, the example
> > > program didn't work.
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > > _______________________________________________
> > > Tutor maillist  -  Tutor at python.org
> > > http://mail.python.org/mailman/listinfo/tutor
> > >
> >
> 
> 
> __________________________________________________
> 
> 
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


More information about the Tutor mailing list