kid wants to know more about color on the screen

news dcsmpayne at bigpond.com
Mon Jun 14 12:31:50 CEST 2004


Hi Doug, I am also using this text. On the whole I find it very very good.
I am looking at the pages you mention and it looks like you have not added
the rest of the code after the print \ statement ... there is a whole bunch
of code in triple quotes that follows, when this is included you should get
the correct syntax highlighting. Actually I did this exercise only last week
with 2 year 7 classes.
Your problems are common and you will soon get over them, wait till page 22
when you see escape sequences! .. realise all these things become old hat
very quickly.
regards
Darren Payne

"Doug Mitchell" <jmjm at SsYyMmPpAaTtIiCcOo.ca> wrote in message
news:FMCyc.61975$8k4.1338501 at news20.bellglobal.com...
> Dear Group,
>
> My son who is in grade 7 has *just* started going through the book "Python
> for the Absolute Beginner" by Michael Dawson. He and I have no programming
> experience. He is beginning this on an old win 95 computer with Python 2.2
I
> think.
>
> He is getting a bit frustrated with color coding.
> For example in Chapter 2 page 18 and 19 Mr. Dawson describes a more fancy
> way of printing "Game Over" on the screen.  According to *him*...
>
> When I type the command:     print "Program 'Game Over' 2.0"
>                                               print \
>
> Instead of getting the second "print" to turn orange, like it's supposed
to
> when you type in a command, it just stays black. And when its time to
> actually run the program, Python just prints out Program Game Over 2.0
> instead of the fancy large text like that is shown in the book.
>
> Later on he says that strings within quotes will be green as expected and
> then all of a sudden on the next line it will stay black :(. And when he
> does a run script there will be a syntax error as Python wont recognize
this
> 'black' string but then on another occasion the 'black' will run ok :(.
>
> I am sure my inquiries are quite vague but I am trying to piece together
> some of his 'groans and grunts' :(.
>
> Any suggestions or other info you need from him?
>
> Thanks for your advice.
>
> Jack
>
>





More information about the Python-list mailing list