Promoting Python

BartC bc at freeuk.com
Tue Apr 5 14:47:00 EDT 2016


On 05/04/2016 19:02, alister wrote:
> On Tue, 05 Apr 2016 08:06:02 -0400, Joel Goldstick wrote:

>>>> REM BBC Basic FOR c = 1 TO 15 : COLOUR c
>>>>    PRINT "Color ";c
>>>> NEXT c
>>>>
>>>> REM BBC Basic c = 0 FOR x = 80 TO 2000 STEP 96
>>>>    GCOL c: CIRCLE FILL x,500,50 : c = c + 1
>>>> NEXT x
>>>
>>> If you tell us some more of what color, gcol etc do someone will likely
>>> show you Though in all fairness I dont expect it to be as pithy as the
>>> BASIC --
>>> https://mail.python.org/mailman/listinfo/python-list
>>
>> The color stuff has to do with DOS based 16 color displays I think.
>> Or maybe it worked with other 16 color displays of the time
>
> No
> If that code is BBC basic then it would print the word Colour followed by
> the numbers 1 - 15
>
> For x in range (1,16):
> 	print "Colour %s"%x
>

You forgot the COLOUR statement. Presumably each line is in a different 
text colour.

-- 
Bartc



More information about the Python-list mailing list