Promoting Python

alister alister.ware at ntlworld.com
Tue Apr 5 15:38:41 EDT 2016


On Tue, 05 Apr 2016 19:47:00 +0100, BartC wrote:

> 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.

indeed i did
I am no-longer in the old basic habit of putting as many statements on a 
line as possible.

Perhaps this is where the constant requests for a one line solution 
originate? 



-- 
Price's Advice:
	It's all a game -- play it to have fun.



More information about the Python-list mailing list