On 25/04/2019 11:54, Mark Alderson wrote: > tried screen.colormode(255)
Peter has shown you how to make that work but there is a wee issue below I need to point out. > -------------------------------------code----------------- > from turtle import Turtle > t = Turtle() > t.speed(0) > > b = 180 > a = 35 > > colormode(255) > > t.color((55,55,55)) > for i in range(200): > t.circle(i,a) > t.right(b) > t.circle(i,a) > > > #input('Press any key to continue...') > > ------------------------------------------------------------------------- > > ===========error======================= > Traceback (most recent call last): > File "H:\python\snowflake.py", line 9, in <module> > screen.colormode(255) > NameError: name 'screen' is not defined > =================================== The error message clearly does not reflect the code above. In this case its not too bad but in more complex questions it is very important that you send the actual code that generates the error. Otherwise we wind up just guessing at what might be the problem. Just something for future reference. Regards from Stirling, -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor