Presentation is loading. Please wait.

Presentation is loading. Please wait.

Python Turtle Mini-Course. Operations go( n ) # n est un nombre turn ( d ) # d est longle color (green) width ( n ) invisible ( ) visible ( ) pen_up.

Similar presentations


Presentation on theme: "Python Turtle Mini-Course. Operations go( n ) # n est un nombre turn ( d ) # d est longle color (green) width ( n ) invisible ( ) visible ( ) pen_up."— Presentation transcript:

1 Python Turtle Mini-Course

2

3 Operations go( n ) # n est un nombre turn ( d ) # d est longle color (green) width ( n ) invisible ( ) visible ( ) pen_up ( ) pen_down ( ) clear ( )

4 reset ( ) Example 1 for i in range (3) Go (100) Turn (360/3) Example 2 for i in range (90) Width ( i ) go (10)

5 Circle Color ( ? ) Width ( ? ) For i in range ( ?) : ?

6 Circles Color ( ? ) Width ( ? ) For i in range ( ?) : ?

7 Objects - Polygons def polygon (n): For i in range (n): go (50) turn (360/n) Dessiner des polygons?

8 Objects - Circles def circle (): For …. ? Declarer une liste: Color_list = [red, purple, ….] Dessiner des circles des different coleurs?

9 http://docs.python.org/library/turtle.html


Download ppt "Python Turtle Mini-Course. Operations go( n ) # n est un nombre turn ( d ) # d est longle color (green) width ( n ) invisible ( ) visible ( ) pen_up."

Similar presentations


Ads by Google