Python Turtle Mini-Course
Operations go( n ) # n est un nombre turn ( d ) # d est longle color (green) width ( n ) invisible ( ) visible ( ) pen_up ( ) pen_down ( ) clear ( )
reset ( ) Example 1 for i in range (3) Go (100) Turn (360/3) Example 2 for i in range (90) Width ( i ) go (10)
Circle Color ( ? ) Width ( ? ) For i in range ( ?) : ?
Circles Color ( ? ) Width ( ? ) For i in range ( ?) : ?
Objects - Polygons def polygon (n): For i in range (n): go (50) turn (360/n) Dessiner des polygons?
Objects - Circles def circle (): For …. ? Declarer une liste: Color_list = [red, purple, ….] Dessiner des circles des different coleurs?