Accueil
Python
Pandas
Turtle
QtDesigner
Exercice N°9
Enoncer :
Écrire un programme en python qui permet de dessiner le drapeau de la Tunisie.
Correction :
from turtle import*
bgcolor('red')
pensize(3)
color('white')
penup()
goto(0,-120)
pendown()
begin_fill()
circle(150)
end_fill()
penup()
goto(0,-90)
pendown()
color('red')
begin_fill()
circle(120)
end_fill()
penup()
goto(29,-89)
pendown()
color('white')
begin_fill()
circle(100)
end_fill()
penup()
setheading(30)
goto(10,-25)
color('red')
begin_fill()
down()
for i in range(5):
forward(100)
left(144)
end_fill()
hideturtle()
Introduction
Exercice N°1
Exercice N°2
Exercice N°3
Exercice N°4
Exercice N°5
Exercice N°6
Exercice N°7
Exercice N°8
Exercice N°9
Exercice N°10
Exercice N°11
Exercice N°12
Exercice N°13
Exercice N°14
Exercice N°15
Exercice N°16
Exercice N°17
Exercice N°18
Exercice N°19
Exercice N°20
Exercice N°21
Exercice N°22
Exercice N°23
Exercice N°24
Exercice N°25
Exercice N°20